text stringlengths 6 9.38M |
|---|
CREATE VIEW CMDV_T_RCP_PHA_YK AS
SELECT
SEQ1_NO
, SEQ2_NO
, VLD_FLG
, REC_IDENT_INFO
, EXAM_PAY_INST
, TDFK
, SCORE_LIST
, DRGST_CD
, REQ_YM
, MLT_VOL_IDENT_INFO
, PRAC_YM
, INPUT_YM
FROM
TNDS_T_RCP_PHA_YK
WHERE
KO_FLG IN (0,2)
WITH READ ONLY
;
|
CREATE TABLE Movie(
id INT UNSIGNED NOT NULL, -- ID's should not be negative, and should exist
title VARCHAR(100) NOT NULL, -- A movie has to have a title
year INT UNSIGNED NOT NULL, -- A movie has to be released at some point
rating VARCHAR(10),
company VARCHAR(50),
PRIMARY KEY(id), -- ID is a primary way t... |
/* tablename: 销售订单交易类型 */
create table so_m30trantype (ctrantypeid varchar(20) null
/*交易类型*/,
pk_trantype char(20) not null
/*销售订单交易类型主键*/,
fdirecttype smallint null
/*直运类型标记*/,
fsalemode smallint null
/*销售模式*/,
bmorerows char(1) null
/*同一货物可否列多行*/,
bcanchangeout char(1) null
/*退货入库之后才能换货出库*/,
faskqtrule smallint... |
ALTER TABLE `users`
ADD COLUMN `last_motell` VARCHAR(255) NULL
;
INSERT INTO `addon_account` (name, label, shared) VALUES
('motell_black_money','Dirty money Motel',0)
;
INSERT INTO `addon_inventory` (name, label, shared) VALUES
('motell','Motel',0)
;
INSERT INTO `datastore` (name, label, shared) VALUES
('mo... |
Create Table Users (
id number Primary Key,
email varchar2(200) Unique Not Null,
firstname varchar2(200) Not Null,
lastname varchar2(200) Not Null,
phonenumber varchar2(200),
password varchar2(500) Not Null,
pokemonid varchar2(20) Not Null
);
Create Sequence user_seq INCREMENT BY 1 START WITH 1; |
SELECT * FROM restaurant ORDER BY RAND() LIMIT 1; |
# generated via Exemples/articles.xml;
DROP TABLE IF EXISTS articles;
CREATE TABLE articles (
id VARCHAR(255) ,
refArticle VARCHAR(255) ,
PRIMARY KEY (`id`)
) ;
INSERT INTO articles (id,refArticle) VALUES (1,'HYBPk-164') ;
INSERT INTO articles (id,refArticle) VALUES (2,'BHDwm-519') ;
INSERT INTO arti... |
-- phpMyAdmin SQL Dump
-- version 4.2.10
-- http://www.phpmyadmin.net
--
-- Хост: localhost
-- Время создания: Авг 31 2015 г., 17:52
-- Версия сервера: 5.6.21
-- Версия PHP: 5.6.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40... |
DROP TABLE IF EXISTS waffle_flag_amo_groups;
DROP TABLE IF EXISTS waffle_flag_amo_users;
DROP TABLE IF EXISTS waffle_flag_amo;
DROP TABLE IF EXISTS waffle_sample_amo;
DROP TABLE IF EXISTS waffle_switch_amo;
DELETE FROM waffle_flag_mkt_users WHERE flag_id = (SELECT id FROM waffle_flag_mkt WHERE name='disco-pane-show-re... |
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: localhost Database: apoteka
-- ------------------------------------------------------
-- Server version 5.7.19
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!... |
CREATE OR REPLACE PROCEDURE CPI.check_comm_payts2 (
p_gacc_tran_id IN NUMBER,
p_iss_cd IN VARCHAR2,
p_prem_seq_no IN NUMBER,
p_bill_nos IN OUT VARCHAR2,
p_ref_nos IN OUT VARCHAR2,
p_exist IN OUT NUMBER
)
IS
v_exist VARCHAR2 (1) := '... |
SET @row := -1;
SET @counter := 0;
CREATE TEMPORARY TABLE IF NOT EXISTS temp1
as
(
select image_id,round(score) as score from (select @counter := @counter+1, image_id,score from (
SELECT * FROM
( SELECT @row := @row +1 as rownum , image_id, score
FROM unlabeled_image_predictions
order by score desc ) as ... |
CREATE TABLE "Config" ("Key" TEXT PRIMARY KEY, "Value" TEXT); |
create table if not exists avalues(
akey numeric,
avalue varchar(32)
);
delete from avalues;
insert into avalues values( 1, 'a-value' ); |
-- point 3
-- show tables database
SHOW TABLES;
|
INSERT INTO `#__bsms_update` (id, version) VALUES ('20', '9.0.1')
ON DUPLICATE KEY UPDATE version = '9.0.1';
|
SET SERVEROUTPUT ON
BEGIN
EXECUTE IMMEDIATE
'ALTER TABLE CPI.GIIS_NON_RENEW_REASON ADD active_tag VARCHAR2(1) DEFAULT ''A''';
EXECUTE IMMEDIATE
'ALTER TABLE CPI.GIIS_NON_RENEW_REASON ADD CONSTRAINT giis_non_renew_active_tag_chk CHECK(active_tag IN (''A'',''I''))';
EXECUTE IM... |
CREATE TABLE Domains (
id INT PRIMARY KEY AUTO_INCREMENT,
Name VARCHAR(255) NOT NULL, -- e.g. "Invoices", "SalaryReceipts"
Length INT DEFAULT 1, -- i.e. no of learning data points for this domain
-- AutoCalculateCorrelations:
-- switch to either auto recalculate or not recalculate on every data insert
-- useful ... |
DROP TABLE IF EXISTS Temp;
CREATE TABLE Temp
(
id INTEGER
);
INSERT INTO Temp(id)
SELECT DISTINCT a.id
FROM an_comorbid a
WHERE a.descr = 'Smoker'
UNION
SELECT DISTINCT b.id
FROM an_comorbid b
WHERE b.descr = 'Allergy';
SELECT t.id, c.firstName, c.lastName
FROM Temp t, an_case c
WHERE c.id... |
CREATE TABLE orderslipdetail (
id CHAVE NOT NULL,
id_order_slip CHAVE NOT NULL,
id_order_detail CHAVE NOT NULL,
product_quantity CHAVE NOT NULL,
unit_price_tax_excl DECIMAL(20, 6),
unit_price_tax_incl DECIMAL(20, 6),
total_price_tax_excl DECIMAL(20, 6),
total_price_ta... |
DROP PROCEDURE IF EXISTS reporting.SP_campaign_list_gen_PA2_RC;
CREATE PROCEDURE reporting.`SP_campaign_list_gen_PA2_RC`()
BEGIN
/*********************************************************************************************************************************
--- NAME : SP_campaign_list_gen_PA2_RC
--- DESCRIPTION... |
SELECT json_object('id' VALUE id,'@id' VALUE 'eis:eFrame/Context/' || id,'@type' VALUE 'bo:Context',
'identifier' VALUE JSON_OBJECT('@type' VALUE 'bo:ContextIdentity', '@id' VALUE 'eir:Context/' || id, 'primaryIdentifier' VALUE id, 'identityType' VALUE 'bo:ContextIdentity', 'naturalKeyValue... |
SELECT
*
FROM (
SELECT
a.row_number AS row_number,
a.mmsi AS mmsi,
b.shipname AS shipname,
b.callsign AS callsign,
b.Registration_Nbr AS Registration_Nbr,
b.Country_Code AS Country_Code,
b.Gear_Main_Code AS Gear_Main_Code,
b.Gear_Sec_Code AS Gear_Sec_Code,
a.rank_callsign AS call... |
/*Created by pjsantos 01/11/2017
SR 5898 BIR2307 Enhancement, modiied table CPI.GIIS_LOSS_TAXES to update data to latest BIR FORM standard */
SET SERVEROUTPUT ON
DECLARE
v_length NUMBER (4) := 0;
BEGIN
BEGIN
SELECT data_length
INTO v_length
FROM all_tab_cols
WHERE owner = 'CPI'... |
SELECT * FROM WEBHOOKS
ORDER BY INSERT_DATETIME %s;
|
CREATE TABLE member(
userID VARCHAR2(50) PRIMARY key,
userName VARCHAR2(50),
userPwd VARCHAR2(50),
userEmail VARCHAR2(70),
userTel NUMBER,
admin number
);
COMMIT;
ALTER TABLE member MODIFY userTel VARCHAR2(70);
select * from member;
SELECT COUNT(userid) AS COUNT FROM member;
select * from board;
select * from... |
INSERT INTO banc.entity_link_info VALUES
(100,'banc.address','address'),
(200,'banc.association_link','association'),
(300,'banc.event','event'),
(400,'banc.familyCommunication','connunication'),
(500,'banc.banc_community','community'),
(600,'banc.transactions','transactions'),
(700,'banc.person','person'),
(800,'banc... |
CREATE TABLE ville (
"id_ville" INTEGER NOT NULL PRIMARY KEY,
"nom" VARCHAR(100)
);
CREATE TABLE archi (
"id_archi" INTEGER NOT NULL PRIMARY KEY,
"nom" VARCHAR(100)
);
CREATE TABLE porteur (
"id_porteur" INTEGER NOT NULL PRIMARY KEY,
"nom" VARCHAR(100)
);
CREATE TABLE tt (
"id_tt" INTEGER NOT NULL PRIMARY... |
rem
rem $Header: cat714.sql,v 1.1 1993/03/12 15:37:16 VRAGHUNA Exp $
rem
Rem Copyright (c) 1991 by Oracle Corporation
Rem NAME
Rem cat714.sql - Migrate 7.0.13 to 7.0.14
Rem
Rem DESCRIPTION
Rem RIGHT AFTER A 7.0.13 DATABASE IS STARTED
Rem UP USING 7.0.14 RELEASE FOR THE FIRST TIME, RUN... |
USE employees;
# 2. Using the example in the Associative Table Joins section as a guide,
# write a query that shows each department along with the name of the current manager for that department.
SELECT departments.dept_name AS 'Department', concat(employees.first_name, ' ', employees.last_name) AS 'Manager' FRO... |
SELECT * FROM SYSTEM_ATTRIBUTES
WHERE
CONFIG_NAME = ?
;
|
ALTER TABLE todos ADD completed boolean Default 0; |
CREATE or REPLACE PROCEDURE Doc_SecCategory_Insert
(subcategoryid_1 integer,
categoryname_2 varchar2,
docmouldid_3 integer,
publishable_4 char,
replyable_5 char,
shareable_6 char,
cusertype_7 integer,
cuserseclevel_8 smallint,
cdepartmentid1_9 integer,
cdepseclevel1_10 smallint,
cdepartmentid2_11 ... |
SELECT channel_user.name, subscriber_user.name FROM user_subscriptions
INNER JOIN usr channel_user ON user_subscriptions.channel_id = channel_user.id
INNER JOIN usr subscriber_user ON user_subscriptions.subscriber_id = subscriber_user.id;
|
USE ndli;
CREATE TABLE addresses (
id INT NOT NULL AUTO_INCREMENT,
address VARCHAR(255) NOT NULL,
postcode VARCHAR(12) NOT NULL,
city VARCHAR(30) NOT NULL,
country VARCHAR(30) NOT NULL,
PRIMARY KEY(id)
);
CREATE TABLE users (
id INT NOT NULL AUTO_INCREMENT,
email VARCHAR(255) NOT NULL,... |
INSERT INTO `#__bsms_update` (id, version) VALUES (11, '7.0.3')
ON DUPLICATE KEY UPDATE version= '7.0.3';
|
DROP TABLE IF EXISTS feedback;
CREATE TABLE feedback (
id BIGINT NOT NULL PRIMARY KEY,
creator_id BIGINT,
text TEXT,
created_dt TIMESTAMP WITH TIME ZONE,
updated_dt TIMESTAMP WITH TIME ZONE
);
DROP SEQUENCE IF EXISTS feedback_id_seq;
CREATE SEQUENCE feedback_id_seq
INCREMENT 1
MINVALUE 1
MAXVAL... |
CREATE TABLE [meeting] (
[id] INTEGER PRIMARY KEY,
[user_id] INTEGER,
[mtime] TEXT,
[address] TEXT,
[join_users] TEXT,
[title] TEXT,
[content] TEXT,
[send_user] TEXT,
[require] TEXT,
[receive_time] LONG,
[meeting_type] TEXT,
[read_flag] INTEGER
);
CREATE TABLE [warning] (
... |
SELECT dropIfExists('VIEW', 'usr');
CREATE OR REPLACE VIEW usr AS
SELECT usesysid::integer AS usr_id,
usename::text AS usr_username,
COALESCE((SELECT usrpref_value FROM usrpref WHERE usrpref_username=usename AND usrpref_name='propername'), '') AS usr_propername,
null::text AS usr_passwd,
... |
DROP VIEW IF EXISTS store_holiday_sale;
CREATE VIEW store_holiday_sale AS
SELECT s.Store, SUM(a.WeeklySales) as sale
FROM Stores as s
JOIN Salesnew as a ON s.Store = a.Store
JOIN Holidays as h ON a.WeekDate = h.WeekDate
WHERE h.IsHoliday = 'TRUE'
GROUP BY s.Store;
SELECT *
FROM (SELECT *
FR... |
select * from job_seeker where email = $1
|
-- -----------------------------------------------------
-- Schema mokbnb
-- -----------------------------------------------------
DROP SCHEMA IF EXISTS `mokbnb` ;
-- -----------------------------------------------------
-- Schema mokbnb
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EX... |
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... |
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 28, 2020 at 09:47 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.2.34
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
SELECT * FROM LOCALES
ORDER BY INSERT_DATETIME %s
LIMIT ? OFFSET ?;
|
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 09-06-2018 a las 18:16:55
-- Versión del servidor: 10.1.31-MariaDB
-- Versión de PHP: 7.2.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
... |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1:3306
-- Tiempo de generación: 21-05-2018 a las 23:01:54
-- Versión del servidor: 5.7.19
-- Versión de PHP: 7.0.23
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/... |
insert into tags (name) values ('spa'), ('rest'), ('winter'), ('food');
insert into certificates (name, price, create_date, duration) values
('Spa', 15.00, '2020-01-01', 3), ('Skating', 20.00, '2020-02-02', 5), ('Pizza-bar', 12.99, '2020-03-03', 10);
insert into certificate_tag values(1, 1), (1, 2), (2, 2), (2, 3), (... |
/*
# of looks
# of unique email addresses
# of accepted leads
lead cost
underwriting cost
# of loans !!
-all by month, starting in January 2017 and continuing up till today.
-provide the RC external lead info.
*/
DROP TEMPORARY TABLE IF EXISTS table1;
CREATE TEMPORARY TABLE IF NOT EXISTS table1 ( INDEX(lead_seq... |
/*
THIS CODE WAS OUR OWN WORK, IT WAS WRITTEN WITHOUT CONSULTING ANY
SOURCES OUTSIDE OF THOSE APPROVED BY THE INSTRUCTOR.
Bhargav Annigeri, Simon Marty
*/
SET search_path to artistdb;
INSERT INTO WasInBand(artist_id,band_id, start_year, end_year)
(
SELECT WasInBand.artist_id, band_id, 2018, 2019 FROM WasInBand... |
CREATE TABLE IF NOT EXISTS author (
id SERIAL NOT NULL
, name VARCHAR(60) NOT NULL
, is_active BOOLEAN NOT NULL DEFAULT TRUE
, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
ALTER TABLE author ADD CONSTRAINT pk_author PRIMARY KEY (id);
... |
-- select extraction_type, match_type, potential_identifier, original_text
-- from unique_identifiers
-- where match_type != 'url'
-- order by match_type, extraction_type;
-- select extraction_type || ' - ' || match_type, count(id) as num
-- from unique_identifiers
-- group by extraction_type, match_type
-- order by ... |
-- CREAR BASE DE DATOS
-------------------------->
CREATE DATABASE cms;
use cms;
-- CREAR TABLA PARA LOS USUARIOS
----------------------------------->
CREATE TABLE users(
id int NOT NULL AUTO_INCREMENT,
Nombre varchar(100),
Apellido varchar(100),
Correo text,
Pass varchar(100),
Rol varchar(... |
-- Update score of Bob
UPDATE second_table SET score = 10 WHERE name = "Bob";
|
CREATE TABLE customer (
customer_id integer not null,
customer_class_id integer REFERENCES customer_class,
PRIMARY KEY (customer_id),
CONSTRAINT SortingOrder_Position_1 CHECK (argument_column('customer_id'))
);
|
-- AlterTable
ALTER TABLE `userinfo` MODIFY `name` VARCHAR(200) NOT NULL,
MODIFY `phone` VARCHAR(200) NOT NULL,
MODIFY `address` VARCHAR(200) NOT NULL,
MODIFY `email` VARCHAR(200) NOT NULL,
MODIFY `orderid` VARCHAR(200) NOT NULL DEFAULT 'None';
|
with vedtakquery as (SELECT behandling_id FROM vedtak WHERE resultat_type = 'INNVILGE')
UPDATE behandling
SET resultat = 'INNVILGET'
FROM vedtakquery
WHERE behandling.id = vedtakquery.behandling_id AND behandling.status = 'FERDIGSTILT';
|
DROP TABLE IF EXISTS rule_result_detail;
CREATE TABLE rule_result_detail
(
rule_exec_uuid VARCHAR(50),
rule_exec_version INT(10),
rule_exec_time VARCHAR(100),
rule_uuid VARCHAR(50),
rule_version INT(10),
rule_name VARCHAR(100),
entity_type ... |
select
addressid as unique_field,
count(*) as n_records
from `woven-passkey-328019`.`querry_adventureworks20211025`.`person_businessentityaddress`
where addressid is not null
group by addressid
having count(*) > 1
|
CREATE TABLE `assignment_grade` (
`asggradedid` bigint(10) NOT NULL AUTO_INCREMENT,
`assignmentid` bigint(10) NOT NULL DEFAULT '0',
`userid` bigint(10) NOT NULL DEFAULT '0',
`companyid` bigint(10) NOT NULL,
`createdtime` bigint(10) NOT NULL DEFAULT '0',
`modifiedtime` bigint(10) NOT NULL DEFAULT '0',
`gra... |
/*
以下の条件を持つビューを作る
・販売単価が1000円以上
・登録日が9月20日
・含む列が商品名、販売単価、登録日
*/
CREATE VIEW ViewRenshu5_1 (shohin_mei, hanbai_tanka, torokubi) AS SELECT shohin_mei, hanbai_tanka, torokubi FROM Shohin WHERE hanbai_tanka >= 1000 AND torokubi = '2009-09-20';
/*
ビューの作成
CREATE VIEW ビュー名 (カラム1, カラム2, ・・・) AS SELECT カラム1', カラム... |
set echo on
set trims on
drop function product;
drop type Product_Impl;
drop table t_numbers;
create table t_numbers(num number);
insert into t_numbers values(1);
insert into t_numbers values(2);
insert into t_numbers values(3);
insert into t_numbers values(4);
insert into t_numbers values(5);
select * from t_numbers;
... |
/*
SQLyog Ultimate v13.1.1 (64 bit)
MySQL - 5.7.31 : Database - coldchain_flow
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@F... |
alter table tbl_content_like drop constraint id_user_fk;
alter table tbl_content_like
add constraint id_user_fk
foreign key (id_user) references tbl_user
on delete cascade;
alter table tbl_content_like drop constraint id_content_fk;
alter table tbl_content_like
add constraint id_content_fk
foreign key (id_c... |
UPDATE "Course_courseuserrelation"
SET top_reviewer = TRUE
WHERE id IN (SELECT id
FROM "Course_courseuserrelation"
WHERE course_id = 1
ORDER BY review_karma DESC
LIMIT 50
);
UPDATE "Course_courseuserrelation"
SET top_reviewer = TRUE
WHERE id IN (SELECT id
FROM "Course_courseuserrelation"
W... |
CREATE USER [ITDYNAMICS\sanelend] FOR LOGIN [ITDYNAMICS\sanelend];
|
load data local infile 'C:/cygwin/home/ricky/stats/loandata/fullLine.csv' into table tblUniq fields terminated by ','
enclosed by '"'
lines terminated by '\n'
(ID, Loan, Funded) |
create table product_t(product_id string, name string, current_price string, inventory int, has_saled int, classification string, update_time string)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
STORED AS TEXTFILE;
load data local inpath '/home/hadoop/ly_data/product.csv' into table product_t;... |
drop database if exists illud_prototype;
create database illud_prototype;
use illud_prototype;
create table if not exists author(
author_id int not null auto_increment,
author_name char(50),
nacionality char(30) not null,
primary key(author_id)
);
create table if not exists publisher(
publisher... |
CREATE PROCEDURE [Controller].[UtilRemoveTokens](
@SQLStatment nvarchar(max) OUTPUT
)
AS
BEGIN
SET @SQLStatment = REPLACE(@SQLStatment,N'#', N'--');
RETURN(0);
END
|
select
subscribe_id,
subscribe_name,
carbon_copy,
is_activated
from tbl_subscribes
where account_id = %1
order by %2
|
/*EQUI join --> null은 포함 안됨.*/
--Outer join (left right full) --> null 포함시켜야 할때
--(+)<--오라클에서만 가능. null이 오는쪽에 사용한다.
--self join
/*SubQuery*/
--단일행 SubQuery
select *
from employees
where first_name = 'Den'; -->Den의 급여 확인
select salary,
first_name
from employees
where salary >= 11000; -->Den의 ... |
LOAD DATA LOCAL INFILE "president.txt" INTO TABLE president;
|
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 20, 2021 at 07:01 AM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 7.3.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
create or replace temp table passports as
select index i, strtok_to_array(value, '\n ') v
from table(flatten(SPLIT(
'ecl:gry pid:860033327 eyr:2020 hcl:#fffffd
byr:1937 iyr:2017 cid:147 hgt:183cm
iyr:2013 ecl:amb cid:350 eyr:2023 pid:028048884
hcl:#cfa07d byr:1929
hcl:#ae17e1 iyr:2013
eyr:2024
ecl:brn pid:760753108 ... |
--Checklist 30 Nome dos medicos que tem uma sala de um tamanho menor que
select nomemedico
from medico
where numero_sala = any (select numerosala from sala where tamanho < 30) |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Erstellungszeit: 06. Mrz 2016 um 16:11
-- Server-Version: 10.1.10-MariaDB
-- PHP-Version: 7.0.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT... |
INSERT
INTO
meeting
(
id,
version,
capacity,
description,
meeting_date,
topic,
topic_text
)
(
select meeting_id as id,
0,
capacity,
description,
meeting_date,
topic,
topic_text
from
j... |
#include shutter-lowlevel.inc
BUTTON_REPEAT_DELAY equ 32
BUTTON_HOLD_DELAY equ 200
extern BD2Inc
extern BD2Dec
extern BD3Inc
extern BD3Dec
extern BD3Test
extern ClockInc
extern ClockDec
extern IntInc
extern IntDec
#include display.inc
#include states.inc
#include timer2interrupt.inc
IncE
incFwrap q... |
CREATE DATABASE Librosdb;
use Librosdb;
CREATE TABLE game(
id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
nombre VARCHAR (20),
titulo VARCHAR (20),
fecha VARCHAR (20),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
RENAME TABLE game to libros;
DESCRIBE libros; |
-- --------------------------------------------------------
-- 主机: localhost
-- 服务器版本: 8.0.23 - MySQL Community Server - GPL
-- 服务器操作系统: Linux
-- HeidiSQL 版本: 10.3.0.5771
-- --------------------------------------------------------
/... |
drop table if exists portfolio_var_heatmap_buckets;
create table portfolio_var_heatmap_buckets
(
portfolio_pd_bucket varchar(50),
portfolio_lgd_bucket varchar(50),
version varchar(50)
);
|
-- MySQL dump 10.13 Distrib 5.7.19, for Win64 (x86_64)
--
-- Host: localhost Database: joby_jobs
-- ------------------------------------------------------
-- Server version 5.7.19-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *... |
-- make blank template public
insert into permissions (id,role_id,ad_element_id,object_id,object_type_id)
select uuid_generate_v1(),
'DEF00009-0000-0000-0000-DEF000000009', -- TemplateUser
getGlobalIds('everyone'),
'00000000-0000-0000-0000-000000000000', -- blank template id --
4 ... |
-- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time:
-- Версия на сървъра: 5.5.39
-- PHP Version: 5.4.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_C... |
alter table player
change enterInNextLeague enterInNextSeason tinyint(1); |
INSERT INTO product (id, name, price) values
(1,'beer', 10),
(2,'chocolate', 20);
/*id, name, price*/
INSERT INTO acl_sid (id, principal, sid) VALUES
(1, 1, 'john'),
(2, 1, 'bill');
/*id, 1=user/other=roole(group), user_name(the way it is identified)*/
INSERT INTO acl_class (id, class) VALUES
(1, 'pl.haladyj.springse... |
CREATE TABLE operatingsystem (
id CHAVE NOT NULL,
name CHARACTER VARYING(64),
CONSTRAINT pk_operatingsystem PRIMARY KEY (id)
); |
select InvoiceLine.InvoiceLineId, Track.Name, Track.Composer
from InvoiceLine join Track on (InvoiceLine.TrackId = Track.TrackId)
----come back and redo
select InvoiceLine.InvoiceLineId, Track.Name, artist.name
from InvoiceLine join Track on (InvoiceLine.TrackId = Track.TrackId) join Album on(Album.AlbumId = Track... |
CREATE TABLE Migration(
migration VARCHAR(MAX),
batch INT
) |
--
-- DbNinja v3.2.1 for MySQL
--
-- Dump date: 2013-10-23 21:57:23 (UTC)
-- Server version: 5.5.24-log
-- Database: vr-php1
--
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNEC... |
SELECT * FROM TEMPLATE_MASTERS
WHERE
TYPE_ID = ?
;
|
--
-- Popolamento tabella `Utente`
--
INSERT INTO `Utente` (`username`, `password`) VALUES
('andrea.chinello94@alice.it', '1234'),
('andrea.chinello94@gmail.com', '12345'),
('hornoiu.irina@gmail.com', 'asdfg');
--
-- Popolamento tabella `Azienda`
--
INSERT INTO `Azienda` (`idAzienda`, `nome`, `pIva`, `ragioneSociale`... |
USE hutoma;
GRANT SELECT ON `hutoma`.`intent` TO 'aiReader'@'127.0.0.1';
DROP PROCEDURE IF EXISTS `getAisForRetraining`;
DELIMITER ;;
CREATE DEFINER=`aiReader`@`127.0.0.1` PROCEDURE `getAisForRetraining`()
BEGIN
SELECT ai.id, ai.aiid, ai.dev_id, botStore.publishing_state
FROM ai LEFT JOIN botStore ON ai.aiid=bo... |
delete from SEC_PRINCIPALS;
delete from SEC_CREDENTIALS;
delete from SEC_PERMISSIONS;
insert into SEC_PRINCIPALS (PRINCIPAL_ID, CLASS_NAME, FULL_PATH,
CREATED_TIME, MODIFIED_TIME)
values('1986150778', 'com.hsbc.gltc.gwis.services.security.core.UserPrincipalImpl', '/user/admin',
'2007-04-19 10:52:27', '2007-04-19 10... |
DROP TABLE IF EXISTS employee;
DROP TABLE IF EXISTS role;
DROP TABLE IF EXISTS department;
CREATE TABLE department(
id INTEGER NOT NULL AUTO_INCREMENT,
name VARCHAR(30),
PRIMARY KEY(id)
);
CREATE TABLE role(
id INTEGER NOT NULL AUTO_INCREMENT,
title VARCHAR(30),
salary DECIMAL,
department_id INT,
PRIMARY KEY(id),
FOR... |
SELECT EXISTS(
SELECT d.* FROM arr_dao d
JOIN arr_dao_link l ON l.dao_id = d.dao_id
WHERE l.node_id = 45 AND d.dao_type = 'LEVEL' AND l.delete_change_id IS NULL
) |
-- create table force_name where name can't be null
CREATE TABLE IF NOT EXISTS force_name(id INT, name VARCHAR(256) NOT NULL);
|
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Хост: localhost:3306
-- Время создания: Мар 06 2019 г., 14:24
-- Версия сервера: 10.0.37-MariaDB-cll-lve
-- Версия PHP: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 ... |
# ************************************************************
# Sequel Pro SQL dump
# Version 4135
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
#
# Host: localhost (MySQL 5.5.34)
# Database: podium
# Generation Time: 2015-04-12 23:28:02 +0000
# **************************************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.