sql
stringlengths
6
1.05M
CREATE TABLE mm.territories ( id serial PRIMARY KEY, name character varying(50), datasource character varying(255), ord integer ); CREATE TABLE mm.territories_groups ( g_id integer REFERENCES mm.groups(id) ON DELETE CASCADE, t_id integer REFERENCES mm.territories(id) ON DELETE CASCADE, id ...
-- file:foreign_data.sql ln:81 expect:true ALTER ROLE regress_test_role_super NOSUPERUSER
<gh_stars>10-100 -- file:alter_generic.sql ln:115 expect:true ALTER CONVERSION alt_conv2 OWNER TO regress_alter_user3
SELECT sqlTypeOf(MIN(decimal_without_null_9_4)), MIN(decimal_without_null_9_4) FROM dfs.drillTestDir.`CTAS_CSV_PARQUET_DECIMAL9`;
<reponame>hahieuit/Ultimate CREATE TABLE IF NOT EXISTS `#__rsform_directory` ( `formId` int(11) NOT NULL, `enablepdf` tinyint(1) NOT NULL, `enablecsv` tinyint(1) NOT NULL, `ViewLayout` longtext NOT NULL, `ViewLayoutName` text NOT NULL, `ViewLayoutAutogenerate` tinyint(1) NOT NULL, `CSS` text NOT NULL, `...
INSERT INTO `Templates` (name,`createdAt`, `updatedAt`) VALUES ('template 1', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), ('template 2', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP); INSERT INTO `TemplatesLocales` (locale, subject, contents, templateId,`createdAt`, `updatedAt`) VALUES ('pl_PL', 'pomidor','ziemniak pomidor', (SE...
create table item ( id int(11) not null auto_increment, referencia varchar(100) not null, nombre varchar(100) not null, cantidad int(11) not null, primary key (id) ); create table repartidor ( id int(11) not null auto_increment, identificacion varchar...
<filename>DMS5/AddUpdatePredefinedAnalysisSchedulingRules.sql /****** Object: StoredProcedure [dbo].[AddUpdatePredefinedAnalysisSchedulingRules] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE dbo.AddUpdatePredefinedAnalysisSchedulingRules /**********************************************...
<filename>test_and_ground/asist/prc/template/template_md_jamdwell.prc PROC $sc_$cpu_md_jamdwell ;******************************************************************************* ; Test Name: MD_JamDwell ; Test Level: Build Verification ; Test Type: Functional ; ; Test Description ; The purpose of th...
CREATE USER [BUILTIN\Administrators] FOR LOGIN [BUILTIN\Administrators];
<filename>openGaussBase/testcase/KEYWORDS/scope/Opengauss_Function_Keyword_Scope_Case0027.sql -- @testpoint:opengauss关键字scope非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists scope; create sequence scope start 100 cache 50; drop sequence scope; --关键字带双引号-成功 drop sequence if exists "scope"; create sequence "scope" sta...
<reponame>AlanKev117/data-engineering-deliverables -- What are the states with more and fewer reviews in 2021? WITH ranked_reviews_per_state AS ( SELECT dl.location AS location, SUM(fma.review_count) AS total_reviews_2021, row_number() over(order by SUM(fma.review_count) DESC) as ranking_top...
<filename>sql_scripts/database_manipulation.sql -- Starting the transaction begin transaction; -- Reseting the table and the sequence truncate table core_task; alter sequence core_task_id_seq restart with 1; -- Inserting data insert into core_task (name, description, completed) values ('Better filters', 'Work on a be...
<gh_stars>0 use p1g1; -- Indexes for all tables -- Prédio -- ID unique clustered with fill factor 100 (Default) -- Fração -- ID unique clustered with fill factor 100 (Default) -- ID_Predio with fill factor 80 CREATE INDEX ixID_Predio ON CONDOMINIUM.FRACAO(ID_Predio) WITH (FILLFACTOR=80); -- Condómino -- CC unique c...
SET NOCOUNT ON; USE [master]; DROP DATABASE IF EXISTS SQLGeordie; RESTORE DATABASE SQLGeordie from disk = '/sqlserver/data/SQLGeordie.bak'; SELECT COUNT(*) AS [SQLLinuxLocalPersist2_NoOfRows] FROM [SQLGeordie].[dbo].[SQLGeordietable]; GO
<filename>muddy.sql CREATE DATABASE IF NOT EXISTS `muddy` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `muddy`; -- MySQL dump 10.13 Distrib 8.0.18, for macos10.14 (x86_64) -- -- Host: localhost Database: muddy -- --------------------------------------...
-- first, first 7, 14 days, etc... -- idea of the interval -- SELECT d, d + INTERVAL '1 week' as aweekfromnow -- FROM generate_series('2017-01-01', current_date, INTERVAL '1 day') d WITH bt as ( SELECT * FROM ( SELECT p.customer_id, p.payment_date, row_number() over(partition by p.customer_id order by p.payment_...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Dec 08, 2020 at 06:37 PM -- Server version: 8.0.21 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
<gh_stars>100-1000 # LagMonitor table # Add Ids to each table, because it would be easier to refer to those entries in a lightweight way # Example: From a monitoring application # Alternatively we could also use no primary keys at all for some tables CREATE TABLE IF NOT EXISTS `{prefix}tps` ( `tps_id` INTEGER UNS...
-- file:select_into.sql ln:62 expect:true CREATE TABLE ctas_nodata_2 (ii, jj) AS SELECT i, j FROM ctas_base WITH NO DATA
<gh_stars>10-100 /* SQLyog Trial v12.3.3 (64 bit) MySQL - 5.5.53 : Database - hqc_mp ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FORE...
<filename>sql/2-locations.sql create extension if not exists cube; create extension if not exists earthdistance; DROP VIEW LOCATIONS; CREATE TABLE LOCATIONS ( id SERIAL NOT NULL PRIMARY KEY, name VARCHAR(64) NOT NULL, latitude float8, longitude float8 ); insert into LOCATIONS (name) SELECT f.notes->>'locatio...
drop table if exists gh_ost_test; create table gh_ost_test ( id int auto_increment, i int not null, primary key(id) ) auto_increment=1; insert into gh_ost_test values (null, 101); insert into gh_ost_test values (null, 102); insert into gh_ost_test values (null, 103); insert into gh_ost_test values (null, 104); i...
--********************************************************************************* -- $URL$ -- $Id$ --********************************************************************************** -- -- Copyright (c) 2008, 2015 Etudes, Inc. -- -- Portions completed before September 1, 2008 -- Copyright (c) 2007, 2008 The Regents...
CREATE TABLE location ( id BIGSERIAL PRIMARY KEY NOT NULL, name VARCHAR(50) NOT NULL, date_from TIMESTAMP WITH TIME ZONE, date_to TIMESTAMP WITH TIME ZONE, project_id BIGINT NOT NULL, responsibility_id BIGINT, FORE...
<filename>microservicio/infraestructura/src/test/resources/db/migration/DML/V1.1__data.sql insert into usuario(id, nombre,clave,fecha_creacion) values(1,'test','1234',now()); insert into festivos(id, fecha) values(1,'2022-01-10'); insert into producto(id, nombre,cantidad,precio) values(1,'Arroz', 20, 50000); insert int...
DROP INDEX IF EXISTS "user_product_productId_idx"; DROP INDEX IF EXISTS "user_product_lastSelectedOn_idx"; DROP TABLE IF EXISTS "user_product"; CREATE TABLE "user_product" ( "_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "productId" TEXT NOT NULL, "name" TEXT NOT NULL, "brand" TEXT, "manufacturer" TEXT, ...
<filename>src/test/resources/db/migration/V2016.06.20.15.04.17__update_authorize_net_transactions.sql<gh_stars>1-10 UPDATE authorize_net_transactions SET kb_payment_plugin_status = 'ERROR' WHERE success = 0;
<reponame>jankytara2/dbt<filename>test/integration/009_data_tests_test/tests/fail_email_is_always_null.sql select * from {{ ref('table_copy') }} where email is not null
<filename>bristech/shortest-routes-step1.cql // Shortest Route (Step 1) // Find shortest path between all selected chalets // Create a new relationship // Add hop node ids to relationship MATCH (c:Chalet:Selected) WITH collect(c) as chalets UNWIND chalets as c1 WITH c1, filter(c in chalets where c.number > c1.numb...
-- Drop First Versions of Control Algorithm Tables (never used) DROP TABLE "rule_control_action_link" RESTRICT; DROP TABLE "rule" RESTRICT; -- Create New Control Algorithm Tables CREATE TABLE "rule" ( id integer NOT NULL, project_id uuid REFERENCES "project" (id) ON DELETE CASCADE, parent_id integer, c...
--desc: basic SELECT SYSTOOLS.HTTPGETCLOB( URL => CAST('http://localhost:8088/dns/' CONCAT 'yahoo.com' AS VARCHAR(255)), HTTPHEADER => CAST(NULL AS CLOB(1K))) AS ADDR FROM SYSIBM.SYSDUMMY1; --desc: advanced (insert JSON_TABLE here) select * from JSON_TABLE(SYSTOOLS.HTTPGETCLOB( ...
<gh_stars>0 // For Developer Machine single instance // CREATE KEYSPACE authz // WITH REPLICATION = {'class' : 'SimpleStrategy','replication_factor':1}; // // // Example of Network Topology, with Datacenter dc1 & dc2 // CREATE KEYSPACE authz WITH replication = { 'class': 'NetworkTopologyStrategy', 'dc1': '2', 'dc2'...
CREATE TABLE known_one_sided_payment_scripts ( script_hash BLOB PRIMARY KEY NOT NULL, private_key BLOB NOT NULL, script BLOB NOT NULL, input BLOB NOT NULL );
<filename>src/Lab/bin/08-02-2018 [update].sql USE EmmetBlue; ALTER TABLE Lab.InvestigationTypeFields ALTER COLUMN FieldName VARCHAR(50); ALTER TABLE Lab.InvestigationTypeFields ALTER COLUMN FieldDescription VARCHAR(100);
-- Query all columns for a city in CITY with the ID 1661. SELECT * FROM CITY WHERE ID = 1661;
<gh_stars>0 /* Check for schema, delete and create new one*/ DROP DATABASE IF EXISTS `UAI`; CREATE SCHEMA UAI ; /* Create Table */ CREATE TABLE UAI.Alumno ( legajo_alumno INT NOT NULL, nombre_alumno NVARCHAR(50) NOT NULL, apellido_alumno NVARCHAR(50) NOT NULL, documento_alumno INT NOT NULL ); /* INIT DATA ...
REM INSERTING into SYS.ADO_IMSEGTASKDETAILS$ SET DEFINE OFF;
DROP materialized view count_by_state_of_names ; CREATE materialized view count_by_state_of_names as SELECT count(1) as count_by_state, state FROM name_list GROUP BY state ; CREATE INDEX count_by_state_of_names_p1 on count_by_state_of_names ( count_by_state ); CREATE INDEX count_by_state_of_names_p2 on count_by_s...
<reponame>feliposz/hackerrank-solutions<filename>sql/aggregation/weather-observation-station-18.sql select round( abs(max(lat_n)-min(lat_n)) + abs(max(long_w)-min(long_w)) , 4 ) from station;
<filename>Exercises/7. DB Modifications/Solutions.sql USE movies --1-- INSERT INTO MOVIESTAR(NAME, BIRTHDATE) VALUES ('<NAME>', CONVERT(VARCHAR, '1967-06-20 00:00:00')) --2-- DELETE FROM MOVIEEXEC WHERE NETWORTH < 30000000 --3-- DELETE FROM MOVIESTAR WHERE ADDRESS IS NULL USE pc --4-- INSERT INTO product(type, m...
<gh_stars>0 /* Warnings: - You are about to drop the column `registeredById` on the `Registration` table. All the data in the column will be lost. - You are about to drop the `Judge` table. If the table is not empty, all the data it contains will be lost. - You are about to drop the `Setter` table. If the tabl...
<reponame>TheDigitalPhoenixX/MOOC_DB<filename>SQL/Data/EnrollmentType.sql USE dbproject; INSERT INTO EnrollmentType (type) VALUES ("Audit"), ("Paid");
<filename>reviewboard/reviews/sql/reviewrequest.sql CREATE UNIQUE INDEX reviewrequest_target_groups__reviewrequest_group ON reviews_reviewrequest_target_groups (reviewrequest_id, group_id); CREATE INDEX reviewrequest_target_people__reviewrequest_user ON reviews_reviewrequest_target_people (reviewrequest_id, user...
<reponame>fwchen/jellyfish<gh_stars>1-10 ALTER TABLE taco ALTER COLUMN order_index SET default 0;
ALTER TABLE `link` ADD COLUMN `filter` TEXT NULL DEFAULT NULL COMMENT '节点筛选' AFTER `method`;
# Added for versioning
<filename>EmployeeSQL/table_schemata.sql<gh_stars>0 Drop Table If Exists departments; Create Table departments ( dept_no varchar(50) Not Null, dept_name varchar(50) Not Null, Constraint "pk_departments" Primary Key ("dept_no") ); Copy departments From '/Users/hannahlee/Desktop/Bootcamp/sql-challenge/EmployeeSQL/Res...
<filename>backend/de.metas.fresh/de.metas.fresh.base/src/main/sql/postgresql/system/75-de.metas.fresh.reports/5473481_sys_gh2571_translate_bank_statement_process.sql -- 2017-10-03T14:04:53.803 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP...
# --- !Ups CREATE TABLE POSTS ( ID UUID, TITLE TEXT, CONTENT TEXT, CRAETED TIMESTAMP ); # --- !Downs DROP TABLE POSTS
<filename>src/main/model/sql/postgresql/timberbowlDB/tables/create-table-wood.sql -- Table: "WOOD" -- DROP TABLE "WOOD"; CREATE TABLE "WOOD" ( wod_id integer NOT NULL, -- Eindeutiger Technischer Primaerschluessel bof_id integer NOT NULL, -- Eindeutiger Technischer Primaerschluessel wod_version integer N...
-- ---------------------------- -- Table structure for admin -- ---------------------------- DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `id` int(11) NOT NULL AUTO_INCREMENT, `admin_account` varchar(255) NOT NULL, `admin_password` varchar(255) NOT NULL, `admin_permission` tinyint(2) DEFAULT '0', `adm...
<filename>data/1.2.1/1.1.0-1.2.1.sql<gh_stars>1-10 SET FOREIGN_KEY_CHECKS=0; ALTER TABLE `pms`.`pms_task_tag` ADD COLUMN `color_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL AFTER `create_time`; SET FOREIGN_KEY_CHECKS=1;
-- SQL that references a station to a signal map CREATE SCHEMA reference; SET search_path = reference; DROP TABLE stationsig; CREATE TABLE stationsig ( id SERIAL NOT NULL, crs CHAR(3), area CHAR(2), segment INTEGER NOT NULL, PRIMARY KEY (crs) ); CREATE INDEX stationsig_i ON...
-- =============================================================================== -- Alachisoft (R) NCache Sample Code. -- NCache Oracle Dependency Script -- =============================================================================== -- Copyright © Alachisoft. All rights reserved. -- THIS CODE AND INFORMATION IS ...
DROP PROCEDURE IF EXISTS `<CLASSNAME>s_Get<CLASSNAME>IDsBy<FKPROPERTYNAME>`; CREATE PROCEDURE `<CLASSNAME>s_Get<CLASSNAME>IDsBy<FKPROPERTYNAME>` ( <FKPROPERTYNAME> <FKIDSQLTPE> ) BEGIN SELECT ID FROM <CLASSNAME>s WHERE (<FKPROPERTYNAME> = <FKPROPERTYNAME>); END;
ALTER TABLE static_commit_line_warning ALTER COLUMN line TYPE integer USING (trim(line)::integer);
<reponame>alexperegrina/myappnfc -- MySQL dump 10.13 Distrib 5.7.9, for osx10.9 (x86_64) -- -- Host: localhost Database: myappnfc -- ------------------------------------------------------ -- Server version 5.5.47-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_C...
select json_array('a',123,'123','"abc"','{"K":"1","j":"2"}'); select json_array('a',123,'123',"abc",'{"K":1,"j":2}'); select json_array('a',123,'123',"abc"); select json_contains( json_object('f', json_object('a', 123.2, 'b', json_array('x', 'y', 'z'))),'"x"'); select json_contains( json_object('f', json_object('a', 12...
-- @testpoint: 插入含时区time类型正常值 DROP TABLE IF EXISTS test_time10; CREATE TABLE test_time10 (name time); INSERT INTO test_time10 VALUES (time '04:05:06 PST'); INSERT INTO test_time10 VALUES (time '15:05:55 PST'); select * from test_time10; DROP TABLE IF EXISTS test_time10;
DROP DATABASE IF EXISTS financialbuzz_db; CREATE DATABASE financialbuzz_db;
CREATE TABLE testing ( id SERIAL NOT NULL, unique_name CHARACTER VARYING(64) NOT NULL, regular_name CHARACTER VARYING(64) NOT NULL, CONSTRAINT testing_primary_key PRIMARY KEY (id), CONSTRAINT testing_unique_name UNIQUE (unique_name) ); INSERT INTO testing (unique_name, regular_...
-- Table definitions for the tournament project. -- -- Put your SQL 'create table' statements in this file; also 'create view' -- statements if you choose to use it. -- -- You can write comments in this file by starting them with two dashes, like -- these lines here. CREATE TABLE player ( id serial primary key, ...
<filename>gcdb/sql/gc_cur_team_stats_kicking/insert.sql INSERT INTO gc_cur_team_stats_kicking (player_id, name, totpfg, fga, fgm, fgyds, xptot, xpa, xpmade, xpmissed, xpb, _gc_cur_team_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
<filename>ServiceLibrary/DbModels/Log/Sql/Drop/vw_sourceaddresses.sql DROP VIEW Log.vw_sourceaddresses;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Фев 17 2020 г., 21:09 -- Версия сервера: 8.0.13-4 -- Версия PHP: 7.2.24-0ubuntu0.18.04.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
ALTER TABLE Question ADD COLUMN parse_text varchar(2000); ALTER TABLE Question ADD COLUMN question_type varchar(20);
<reponame>WiduriComputerCommunity/workshop2018 -- Adminer 4.7.5 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 `pengajar`; CREATE TABLE `pengajar` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nama` varchar(30) NOT NULL, `...
<filename>db/IKAdb.sql -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Feb 25, 2018 at 07:34 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:0...
<reponame>AerisG222/mikeandwan.us select concat('insert into photo.category (id, year, is_private, name, teaser_photo_width, teaser_photo_height, teaser_photo_path) values (', id, ', ', year, ', ', 'CAST(', is_private, ' AS BOOLEAN), ', '''', REPLACE(name, '''', ''''''), ''', ', teaser_photo_width,...
<gh_stars>0 SELECT * FROM bank.client; select * from bank.client order by district_id asc, client_id asc; select * from bank.client order by district_id desc, client_id asc; select * from bank.loan order by amount asc; select * from bank.loan order by payments desc; select account_id, amount from bank.loan order by...
-- phpMyAdmin SQL Dump -- version 3.5.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 08, 2015 at 08:12 PM -- Server version: 5.5.21-log -- PHP Version: 5.3.20 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
<reponame>FranciscoAT/movie_db -- a. Info about user-specified movie SELECT * FROM movie WHERE movie.name = input; --b. Full list of actors SELECT A.firstane, A.lastname FROM actor A, movie M, actorPlays P WHERE (M.name = input AND M.movieID = P.movieID);
<gh_stars>1-10 SELECT ID FROM USERS WHERE UPPER(USERNAME) = ?;
<filename>SQL/Question-08/index.sql /* Write a join that gives the item id, item name, quantity, individual item cost, and cost of all of the quantity of each item. Only include items that have a quantity more than 1. Order the results by most to least quantity. */ select i.ITEM_ID, i.ITEM_NAME, inv.INVENTORY_COUNT ...
INSERT INTO SystemUsers (Login, Password, FullName) VALUES ('jacquefresco', '$scrypt$N=32768,r=8,p=1,maxmem=67108864$XWzCkBbnH/pAxX24vPbeyhIFXJI4EDeqrD/2TVKthmQ$unx3RSASN2pIjGE5Ij/AHbQr7iVja7//gEvH9PJqQtmi04ztGOaDozOnCPajMnwoiNwh7zQUf29gj2QHNK0CLQ', 'Jacque Fresco'); -- jacquefresco/fresco INSERT INTO SystemUsers (L...
ALTER USER scoreboard_app WITH PASSWORD '<PASSWORD>'; BEGIN; CREATE TABLE competitor ( id SERIAL PRIMARY KEY, name TEXT NOT NULL ); GRANT ALL PRIVILEGES ON TABLE competitor TO scoreboard_app; GRANT USAGE, SELECT ON SEQUENCE competitor_id_seq TO scoreboard_app; CREATE TABLE competition ( ...
<filename>sql/toi.sql SELECT * FROM NewsWeb.TOI; DROP TABLE `NewsWeb`.`TOI` ; CREATE TABLE `NewsWeb`.`TOI` ( `id` DOUBLE NOT NULL AUTO_INCREMENT , `articlelink` TEXT NULL, `heading1` VARCHAR(255) NULL, `image` TEXT NULL, `data` TEXT NULL, `cat` VARCHAR(255) NULL, `auth_detail` VARCHAR(255) NULL, `time...
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table access_token ( id integer not null, token varchar(255), user_id integer, constraint pk_access_token primary key (id)) ;...
<filename>data/src/main/resources/db/migration/hsql/V1__ddl.sql create table association (id bigint generated by default as identity (start with 1), longname varchar(255) not null, shortname varchar(255) not null, primary key (id)); create table club (id bigint generated by default as identity (start with 1), click_tt_...
#macro($listByActivityCode(activityCode)) SELECT * FROM lottery_activity_goods WHERE activity_code=:activityCode #end #macro($getNothingGoods(activityCode)) SELECT * FROM lottery_activity_goods WHERE activity_code=:activityCode AND activity_goods_type=3 #end
-- @description query01 for primitive ORC data types. This test has two files: -- the primitive ORC data file and a file that has a subset of columns in -- different order SELECT * FROM pxf_orc_primitive_types_with_subset ORDER BY id;
<reponame>lsst-camera-dh/eTraveler-backend<filename>dbMaint/migrate/migrate0_15_4-0_15_5.sql CREATE TABLE LabelCurrent ( id int NOT NULL AUTO_INCREMENT, objectId int NOT NULL, labelableId int NOT NULL COMMENT "Convenience. Can be looked up from labelId", labelId int NOT NULL, reason varchar(20000) default "" C...
<filename>review.sql -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 22, 2019 at 04:48 AM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
<reponame>NimbusServices/SAEON.ObservationsDatabase Update DataSourceTransformation set NewPhenomenonID = coalesce(PhenomenonOffering.PhenomenonID, PhenomenonUOM.PhenomenonID) from DataSourceTransformation left join PhenomenonOffering on (NewPhenomenonOfferingID = PhenomenonOffering.ID) left join Phenomen...
<reponame>sgwilbur/ucd-cloner<gh_stars>0 -- -- Update the public url via SQL as the installed.properties file change -- is not being picked up. update ps_prop_value set value = 'http://ucddr.demo' where name = 'server.external.web.url' ; update ps_prop_value set value = 'http://ucddr.demo' where name = 'serve...
<gh_stars>0 ALTER TABLE user ADD gamification_on BOOLEAN DEFAULT TRUE; ALTER TABLE user_achievements ADD is_new BOOLEAN DEFAULT TRUE; ALTER TABLE achievements ADD is_visible BOOLEAN DEFAULT TRUE;
<filename>queries/stackoverflow/q15/8a0583f8cfae0b347a93222e189cc42f09ec2582.sql<gh_stars>0 SELECT b1.name, count(*) FROM site AS s, so_user AS u1, tag AS t1, tag_question AS tq1, question AS q1, badge AS b1, account AS acc WHERE s.site_id = u1.site_id AND s.site_id = b1.site_id ...
<gh_stars>0 create database if not exists coldProduct; drop database coldproduct; use coldProduct; create table if not exists User( id_user TINYINT UNSIGNED AUTO_INCREMENT NOT NULL, dni varchar(9) not null , name varchar(50) not null, lastName varchar(50) not null, phone int not null, email varchar(50) not null, addre...
<reponame>juakoloyu/abasto CREATE TABLE `transportistas` ( `id` INT NOT NULL AUTO_INCREMENT, `nombre` VARCHAR(255) DEFAULT NULL, `tipo_doc` INT DEFAULT NULL, `documento` VARCHAR(255) DEFAULT NULL, `cat_licencia` INT DEFAULT NULL, `licencia` VARCHAR(255) DEFAULT NULL, `created_at` DATETIME NOT NULL, ...
DROP DATABASE project; DROP USER aleksa;
<filename>scavhunt_postgres_create.sql -- psql -d postgres://lpklfpzm:<EMAIL>:5432/lpklfpzm -f scavhunt_postgres_create.sql drop table public.users CASCADE; drop table public.hunts CASCADE; drop table public.events CASCADE; drop table public.photos CASCADE; drop table public.subs CASCADE; CREATE TABLE public.users ( ...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 23, 2018 at 08:16 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<gh_stars>1-10 CREATE TABLE People ( Id INT PRIMARY KEY IDENTITY, Name NVARCHAR(50), Birthdate DATETIME ) INSERT INTO People (Name, Birthdate) VALUES ('Christian', '2000-09-15'), ('Merrie', '1997-09-14'), ('Simo', '1995-09-13') SELECT Name, DATEDIFF(YEAR, Birthdate, GETDATE()) AS [Age in Years], DATEDIFF...
update egwtr_application_process_time set processingtime = 15 where applicationtype=(select id from egwtr_application_type where code = 'NEWCONNECTION'); update egwtr_application_process_time set processingtime = 15 where applicationtype=(select id from egwtr_application_type where code = 'ADDNLCONNECTION'); update egw...
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/select/12a55227.sql -- file:stats.sql ln:141 expect:true SELECT count(*) FROM tenk2 WHERE unique1 = 1
<reponame>StanEgo/ego-stan /* This aspect implies that we can reference entity it's applied to by its name. @statement {id} as known as {name}. */ CREATE TABLE content.name ( id mesh.id NOT NULL, CONSTRAINT pk_content_name PRIMARY KEY (id), CONSTRAINT fk_content_name_id FOREIGN KEY (id) REFERENCES mesh...
<filename>PyNEng/dhcp_snooping_schema.sql create table if not exists dhcp ( mac text not NULL primary key, ip text, vlan text, interface text );
-- phpMyAdmin SQL Dump -- version 4.7.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 2017-12-20 22:00:22 -- 服务器版本: 5.7.18-log -- PHP Version: 7.1.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- ---------------------------- -- Table data for t_user -- ---------------------------- insert into t_user (id,enterprise_id, login_name, name, password, register_date) values('<PASSWORD>a12-a511-880ba19e4b58','9b06d376-44ff-4153-9b31-c29a1<PASSWORD>','admin','Admin','<PASSWORD>','2012-06-04 01:00:00');