text stringlengths 6 9.38M |
|---|
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jan 11, 2018 at 07:31 AM
-- Server version: 10.1.9-MariaDB
-- PHP Version: 5.6.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... |
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: May 26, 2019 at 02:50 PM
-- Server version: 5.7.26-0ubuntu0.16.04.1
-- PHP Version: 7.0.33-0ubuntu0.16.04.4
CREATE DATABASE IF NOT EXISTS smart_home;
USE smart_home;
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"... |
create table user_id_auto
(
id bigint default nextval('user_id_seq'::regclass) not null
constraint user_id_pk
primary key,
name varchar
);
alter table user_id_auto owner to len;
create table user_protobuf_id
(
id bigint not null
constraint user_protobuf_id_pk
primar... |
1. Import this file into an empty PostgreSQL database. Note: the file contains a
lot of data and may take a while to run; your terminal should return to the
command prompt once the import is complete.
$ createdb lesson_3
$ psql lesson_3 < tickets.sql
2. Write a query that determines how many tickets have been sol... |
-- Adminer 4.3.1 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `commande`;
CREATE TABLE `commande` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nom` varchar(80) NOT NULL,
`prenom` varchar(80) NOT NULL,
`mail` varchar(8... |
-- MySQL dump 10.13 Distrib 8.0.17, for macos10.14 (x86_64)
--
-- Host: localhost Database: eteaching
-- ------------------------------------------------------
-- Server version 8.0.17
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 21, 2020 at 11:52 AM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.2.32
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
CREATE PROCEDURE usp_InserRole(@id int,@name varchar(10))
AS
BEGIN
INSERT INTO Roles(Role_ID,Role_name) VALUES(@id,@name);
END |
CREATE TABLE Tbl_Product_Sales
(
fld_product_id varchar(10) NOT NULL, -- internal identification code of product sold
fld_sale_id varchar(10) NOT NULL, -- internal identfication code of sales transaction
fld_product_quantity int Default 1, -- quantity of purchased product
fld_product_unit_price decimal(7,2), -- u... |
use sakila;
-- How many distinct (different) actors' last names are there?
select count(distinct last_name)
from actor;
-- In how many different languages where the films originally produced? (Use the column language_id from the film table)
select count(distinct language_id)
from film;
-- How many movies were releas... |
CREATE TABLE School
(
id BIGINT AUTO_INCREMENT,
name VARCHAR(50) NOT NULL ,
content VARCHAR(100),
del INT DEFAULT 1,
version INT DEFAULT 1,
create_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ,
modify_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (id)
);
DROP TABLE scho... |
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50621
Source Host : localhost:3306
Source Database : pem
Target Server Type : MYSQL
Target Server Version : 50621
File Encoding : 65001
Date: 2015-11-05 17:46:39
*/
SET FOREIGN_KEY_CHEC... |
-- For example, given the above Employee table, the nth highest salary where n = 2 is 200. If there is no nth highest salary, then the query should return null.
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
BEGIN
DECLARE M INT;
SET M=N-1;
RETURN (
# Write your MySQL query statement below.
SELECT... |
select * from confirmed_task where confirmation_id = $1; |
CREATE TABLE users(username varchar(255) primary key not null, pagequota unsigned int, lastjob datetime, pagecount unsigned int);
CREATE TABLE config(key varchar(255), value unsigned int);
INSERT INTO config (key, value) VALUES ( "lastupdate", strftime('%s', 'now') );
|
-- phpMyAdmin SQL Dump
-- version 3.4.11.1deb2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jun 05, 2014 at 06:47 PM
-- Server version: 5.5.35
-- PHP Version: 5.4.4-14+deb7u9
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S... |
#Changement de mail OK
UPDATE `user`
SET
`mail_user` = :mail,
`clef_user` = :clef
WHERE
`login_user` = :login
|
-- q1
select course_id from section where semester = 'Fall' and year = 2009
UNION
select course_id from section where semester = 'Spring' and year = 2010;
-- q2
select course_id from section where semester = 'Fall' and year = 2009
INTERSECT
select course_id from section where semester = 'Spring' and year = 2010;
-- ... |
--Building Classes
INSERT INTO BuildingClasses
(Type, DefaultBuilding, Description)
VALUES ('BUILDINGCLASS_RELIC_HAN', 'BUILDING_RELIC_HAN', 'TXT_KEY_BUILDING_RELIC_HAN');
--================================================================
--Building Definitions
--============================================... |
INSERT INTO artist (name)
VALUES ('Jinglin_Joe'), ('Buckets_Mitchell'), ('Stifle_Tower');
SELECT * FROM artist
WHERE name ILIKE 'a%'
ORDER BY name ASC
LIMIT 5;
SELECT first_name, last_name FROM employee
WHERE city = ('Calgary')
SELECT * FROM employee
WHERE reports_to = 2;
SELECT COUNT(*) FROM empl... |
CREATE TABLE categories (
-- database keys
id integer not null,
-- primary data
title text not null unique,
slug text not null unique,
-- secondary data
description text ,
priority integer not null default (3),
-- server information
c... |
--Query 1:
CREATE TABLE AUTHORS (id SERIAL PRIMARY KEY, name VARCHAR(255));
--This query will create a second table in the lab14_normal database named authors. Confirm the success of this command by typing \d authors in your SQL shell. You should see the authors table schema, as shown above.
--Query 2:
INSERT I... |
insert into TODO values (10001, 'Learn spring 5', false, sysdate(), 'yusuf');
insert into TODO values (10002, 'Learn kubernetes', false, sysdate(), 'yusuf');
insert into TODO values (10003, 'Learn chef', false, sysdate(), 'yusuf'); |
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.7.32)
# Database: phpmvc
# Generation Time: 2021-06-15 03:53:31 +0000
# ***********************************************... |
LOAD DATA LOCAL INFILE "room.csv"
INTO TABLE Room
FIELDS TERMINATED BY ",";
LOAD DATA LOCAL INFILE "user.csv"
INTO TABLE User
FIELDS TERMINATED BY ",";
LOAD DATA LOCAL INFILE "userDepartment.csv"
INTO TABLE UserDepartment
FIELDS TERMINATED BY ",";
LOAD DATA LOCAL INFILE "event.dat"
INTO TABLE Event
FIELDS TERMINATED BY... |
show columns from STK_XQ_POST;
select * from STK_XQ_POST;
insert into STK_XQ_POST values (1, CURRENT_TIMESTAMP, false, 10, 'text', 'title', 'avatar_url', 100, null, false, null);
insert into STK_XQ_POST values (2, CURRENT_TIMESTAMP, true, 5, 'text123', 'title123', 'avatar_url', 160, null, false, null);
update STK_XQ... |
DROP TABLE IF EXISTS chat;
CREATE TABLE chat (
chat_id serial NOT NULL,
sender_id int default 0,
message varchar(255) NOT NULL,
date timestamp without time zone NOT NULL default now()
);
ALTER TABLE chat OWNER TO developers;
GRANT ALL ON TABLE chat TO developers;
|
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 23, 2019 at 05:33 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
create table fleet (
id char(3) not null primary key,
[name] varchar(50)
);
create table ship (
id char(3) not null primary key,
[name] varchar(50),
date_finished varchar(10),
fleet_id char(3) not null,
foreign key (fleet_id) references fleet(id)
);
create table sailor (
id char(4) no... |
CREATE TABLE [wms].[Centros_Distribucion] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[Codigo] VARCHAR (20) NOT NULL,
[Nombre] VARCHAR (50) NOT NULL,
[Id_Tipo_Centro_Distribucion] INT NOT NULL,
[Id_Ope... |
create database uriage;
create table uriage.hanbai(id int not null primary key, shouhin_id int, uriage int);
create table uriage.shouhin(id int not null primary key, name varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci);
create user 'testuser'@'localhost' identified by 'testuser’;
grant all on uriage.* to 't... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 29 Sep 2020 pada 16.39
-- Versi server: 10.4.13-MariaDB
-- Versi PHP: 7.4.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH... |
SELECT coh.name, AVG(completed_at-started_at) AS average_assistance_request_duration
FROM students stu
JOIN cohorts coh ON coh.id = stu.cohort_id
JOIN assistance_requests req ON req.student_id = stu.id
GROUP BY coh.name
ORDER BY average_assistance_request_duration DESC
LIMIT 1;
|
create table movieTable
( `movieID` int unsigned not null auto_increment primary key,
`movieName` char(50) not null
);
create table slotTable
( `slotID` int unsigned not null auto_increment primary key,
`movieID` text not null,
`day` text not null,
`time` time not null
);
create table seatsTable
( `seatID` in... |
SELECT DISTINCT
v0123.product,
COALESCE(lang_en, lang_zh, lang_de, lang_fr) AS lang,
COALESCE(review_en_id, review_zh_id, review_de_id, review_fr_id) AS review_id
FROM
(
SELECT
v012.product AS product,
review_en_id,
lang_en,
review_zh_id,
lang_zh,
review_de... |
CREATE TABLE lms_create_table_test (lms_test_id INTEGER, lms_test_timestamp TIMESTAMP) |
-- get a list of hashes, user_ids, and usernames for future use.
USE cs340_smithb22;
Select credential.user_id, credential.hash, credential.exp_date, user.username
FROM credential
INNER JOIN user on credential.user_id=user.id
-- return all hashes and experation dates for a given usernames
USE cs340_smithb22;
SELE... |
/* Formatted on 17/06/2014 18:06:29 (QP5 v5.227.12220.39754) */
CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCRE0_ST_RICH_MON
(
ID_DPER,
COD_SNDG
)
AS
WITH T_MCRE0_FL_RICH_MON
AS (SELECT (SELECT TO_NUMBER (
TO_CHAR (
TO_DATE (TRIM (PERIODO_RIF)... |
--
-- Drop existing objects
--
DROP SCHEMA IF EXISTS "order" CASCADE;
--
-- Order schema
--
CREATE SCHEMA IF NOT EXISTS "order";
--
-- Cart
--
CREATE SEQUENCE "order".cart_id_seq INCREMENT 1 MINVALUE 1 START 1 CACHE 1;
CREATE TABLE "order".cart
(
"id" integer NOT NU... |
-- phpMyAdmin SQL Dump
-- version 4.4.10
-- http://www.phpmyadmin.net
--
-- Client : localhost
-- Généré le : Jeu 04 Février 2016 à 18:46
-- Version du serveur : 5.5.42
-- Version de PHP : 5.6.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Base de données : `ecv_goodplanet`
--
-- ---... |
USE SCLOUD_PHONE;
DROP TABLE IF EXISTS PHONE_TABS_CLICK;
DROP TABLE IF EXISTS PHONE_TABS_CLICK_SUMMARY;
DROP TABLE IF EXISTS PHONE_TABS_CLICK_SUMMARY_OBS;
DROP TABLE IF EXISTS PHONE_ACTIVITY_DAILY;
CREATE TABLE PHONE_TABS_CLICK
(
IMEI STRING COMMENT '手机IMEI号',
TAB_TYPE CHAR(1) COMMEN... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 14