This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE Tienda; | |
CREATE TABLE FABRICANTES | |
( | |
clave_fabricante int, | |
nombre varchar(30), | |
primary key(clave_fabricante) | |
); | |
CREATE TABLE ARTICULOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
public class Game { | |
public static void main(String args[]) { | |
int car1 = 100, car2 = 100; | |
int result = 0; | |
while (true){ | |
Random random = new Random(); | |
int r = random.nextInt(100 - 0 + 1) + 0; | |
if (car1 >= r) { | |
car1 = car1 - r; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE Concesionario; | |
CREATE TABLE auto ( | |
matricula int, | |
marca varchar(30), | |
modelo varchar(30), | |
color varchar(30), | |
primary key(matricula) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE Concesionario; | |
CREATE TABLE auto ( | |
matricula int, | |
marca varchar(30), | |
modelo varchar(30), | |
color varchar(30), | |
primary key(matricula) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { Observable } from 'rxjs/Observable'; | |
import { AngularFireAuth } from 'angularfire2/auth'; | |
import { AngularFireModule } from 'angularfire2'; | |
import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database'; | |
import { Http } from '@angular/http'; | |
import * as firebase from 'firebase/app'; | |
import { Router } from '@angular/router'; | |
import 'rxjs/Rx'; | |
@Injectable() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example2; | |
public class Figuras { | |
private int area; | |
private static String tipo; | |
public Figuras(int area, String tipo) { | |
this.area = area; | |
this.tipo = tipo; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page</title> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" type="text/css" href="styles.css"> | |
</head> | |
<body> | |
<div> | |
<img class="myImage" src="https://cdn3.computerhoy.com/sites/computerhoy.com/files/styles/fullcontent/public/novedades/lol.jpg?itok=sschC2wj"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create database taller; | |
create table producto( | |
codigoProducto int(11), | |
nombre varchar(100), | |
precio decimal(18, 2) | |
); | |
create table venta( | |
codigoVenta int(11), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE VIEW vista1 as SELECT | |
socios.nombre as nombresocio, | |
cursos.deporte, | |
cursos.dia, | |
profesores.nombre as nombreprofesor, | |
inscriptos.matricula | |
from socios, cursos, profesores, inscriptos | |
where socios.documento = inscriptos.documentosocio AND profesores.documento = cursos.documentoprofesor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 16. */ | |
create table empleados_antiguos ( | |
documento varchar(8), | |
nombre varchar(40) | |
); | |
/* 17. */ | |
/*DROP PROCEDURE IF EXISTS empleados_antiguos;*/ |
OlderNewer