sql
stringlengths
6
1.05M
/* Navicat MySQL Data Transfer Source Server : LOKER Source Server Version : 50532 Source Host : loker.cepat.net.id:3306 Source Database : innovate Target Server Type : MYSQL Target Server Version : 50532 File Encoding : 65001 Date: 2015-05-05 10:59:21 */ SET FOREIGN_KEY_CHECKS=0;...
<reponame>phoenix110/documentation select o.customer_id as orders_master_data@customer_id, month(o.date_) as orders_dynamic_header@header_id, sum(o.amount) as "amount" from sales_order o where o.date_ >= ${start_date} and o.date_ <= ${end_date} and o.customer_id in (${orders_master_data@customer_id}) and month(o.dat...
<reponame>ahlamls/culayCMS -- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 20, 2019 at 11:27 AM -- Server version: 5.7.27-0ubuntu0.18.04.1 -- PHP Version: 7.0.33-10+ubuntu18.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET tim...
MERGE `cdc_demo.session_main` m USING ( SELECT * EXCEPT(row_num) FROM ( SELECT *, ROW_NUMBER() OVER(PARTITION BY delta.session_id ORDER BY delta.di_sequence_number DESC) AS row_num FROM `cdc_demo.session_delta` delta ) WHERE row_num = 1) d ON m.session_id = d.session_id W...
CREATE TABLE "CF_TEMP_MEDIA_LABELS" ( "KEY" NUMBER, "MEDIA_LABEL" VARCHAR2(255 CHAR), "LABEL_VALUE" VARCHAR2(255 CHAR), "ASSIGNED_BY_AGENT_ID" NUMBER )
<filename>sql/patch_56_57_g.sql -- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2020] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance...
<reponame>jklaw90/exposure-notifications-server -- Copyright 2020 the Exposure Notification Server authors -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org...
<reponame>zikfrid/lvivbud.dev -- -- Table structure for table `#__chronoengine_extensions` -- CREATE TABLE IF NOT EXISTS `#__chronoengine_extensions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `addon_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `title` varchar(255) NOT NULL, `enabled` tinyint(1) NOT NULL...
/*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ create index ZSTG_PATWAYS_SOURCE_ID_lwr on ZSTG_PATHWAYS(lower(SOURCE_ID)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_PATWAYS_SHORTNAME_lwr on ...
<reponame>monarch-ci/dipper<gh_stars>10-100 /* First derived from View "mgd.all_allele_view" ~ 45 seconds */ SELECT aav._allele_key, --aav._marker_key, --nullable aav.markersymbol, --aav._strain_key, aav.strain, --aav._mode_key, tin.term as inheritance, --aav._allele_type_key, ...
<filename>openGaussBase/testcase/KEYWORDS/pad/Opengauss_Function_Keyword_Pad_Case0034.sql<gh_stars>0 -- @testpoint: opengauss关键字pad(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists explain_test cascade; create table explain_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor pad for select * from explain_te...
<filename>sql/param_geotiff.sql<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 12.4 -- Dumped by pg_dump version 13.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT p...
-- MySQL dump 10.13 Distrib 5.7.9, for linux-glibc2.5 (x86_64) -- -- Host: localhost Database: yuva -- ------------------------------------------------------ -- Server version 5.5.47-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT...
BEGIN TRANSACTION; CREATE SEQUENCE seq_author_id INCREMENT BY 1 NO MAXVALUE NO MINVALUE CACHE 1; CREATE SEQUENCE seq_award_id INCREMENT BY 1 NO MAXVALUE NO MINVALUE CACHE 1; CREATE TABLE authors ( author_id int DEFAULT nextval('seq_author_id'::regclass) NOT NULL, first_name va...
<reponame>benoutram/explore-education-statistics CREATE OR ALTER PROCEDURE MigrateObservationsAndObservationFilterItems @SubjectsBatchSize INT AS BEGIN -- Create a temporary table of Subjects to migrate DROP TABLE IF EXISTS #SubjectsToMigrate; CREATE TABLE #SubjectsToMigrate ( Id ...
CREATE SEQUENCE ordered_prod_options_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; CREATE TABLE ordered_prod_options ( id integer NOT NULL DEFAULT nextval('ordered_prod_options_id_seq'::regclass) PRIMARY KEY, "orderCart" integer NOT NULL, option uuid NOT NULL, "optionItem" inte...
-- DropForeignKey ALTER TABLE "Hero" DROP CONSTRAINT "Hero_raceId_fkey"; -- DropForeignKey ALTER TABLE "Structure" DROP CONSTRAINT "Structure_raceId_fkey"; -- DropForeignKey ALTER TABLE "StructureFunction" DROP CONSTRAINT "StructureFunction_structureId_fkey"; -- DropForeignKey ALTER TABLE "StructureProduction" DROP ...
IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'getSubjectById') BEGIN DROP Procedure getSubjectById END GO CREATE PROCEDURE [dbo].getSubjectById(@id INT) AS BEGIN SET NOCOUNT ON SELECT S.id, S.uuid, S.firstName, S.lastName, S.sirutaId, S.dob, S.photoUrl, Ut.name city, Ut.countyId...
<reponame>sagunpandey/smart-yatayat -- REQUIRED DATA INSERT INTO user_info (email, first_name, last_name, password, role, balance) VALUES ('<EMAIL>', 'Admin', '', '$2a$10$hSZPkOaff5Z0HxE17ZNiCOX7FSCGG.X7gM5xHduTC5qDJFA/vemXy', 0, 0); INSERT INTO price_settings (setting_name, setting_value) VALUES ('checkpointRate', '...
<reponame>nabeelkhan/Oracle-DBA-Life /* * next_item_type1.sql * Chapter 11, Oracle10g PL/SQL Programming * by <NAME>, <NAME> and <NAME> * * This script tests DBMS_PIPE for a private pipe. */ SET ECHO ON SET SERVEROUTPUT ON SIZE 1000000 -- Ensure the public pipe is built. @create_pipe2.sql -- Demonstrate messag...
-- Create a new table called 'DimStockGroup' in schema 'dbo' -- Drop the table if it already exists IF OBJECT_ID('dbo.DimStockGroup', 'U') IS NOT NULL DROP TABLE dbo.DimStockGroup GO -- Create the table in the specified schema CREATE TABLE dbo.DimStockGroup ( -- primary key column StockGroupID INT PRIM...
<filename>provision/mysql/init/01-databases.sql # create root user and grant rights CREATE USER 'moad'@'localhost' IDENTIFIED BY ''; #GRANT ALL ON *.* TO 'root'@'%'; # create databases -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: database:3306 -- Generation Time: Feb 23, 2021 at...
CREATE TABLE ticket ( PNR INTEGER NOT NULL PRIMARY KEY, train_no INTEGER NOT NULL, journey_date DATE NOT NULL, passenger_no INTEGER NOT NULL, agent_id INTEGER NOT NULL, FOREIGN KEY(agent_id) REFERENCES agent(id), FOREIGN KEY(PNR) REFERENCES passenger(PNR) FOREIGN KEY(train_no) REFERENCES train(train_no)...
<filename>colegio.sql -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 03-11-2017 a las 17:05:51 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET...
<reponame>ikemtz/AdventureWorks CREATE TABLE [dbo].[SaleOrderAddresses] ( [Id] UNIQUEIDENTIFIER NOT NULL, [Line1] NVARCHAR (60) NOT NULL, [Line2] NVARCHAR (60) NULL, [City] NVARCHAR (30) NOT NULL, [StateProvince] NVARCHAR (50) NOT NULL, ...
insert into eg_roleaction values ((select id from eg_role where name='Grivance Administrator'),(select id from eg_action where contextroot ='pgr' and name='Define Escalation Time')); insert into eg_roleaction values ((select id from eg_role where name='Grivance Administrator'),(select id from eg_action where contextroo...
SELECT MAX(DATETIME) AS 시간 FROM ANIMAL_INS;
<reponame>YiqinXiong/HUST-Database-Lab SELECT tc.PCardID, PName, CDate FROM TrainContactor tc, Passenger p WHERE tc.PCardID = p.PCardID AND tc.PCardID NOT IN ( SELECT PCardID FROM TrainContactor WHERE tc.DStatus <> 3)
alter table attachments rename column amazons3url to remote_storage_url; alter table attachments rename column amazons3thumbnail_url to remote_storage_thumbnail_url;
<reponame>Shuttl-Tech/antlr_psql -- file:plpgsql.sql ln:4667 expect:true INSERT INTO transition_table_status (level, node_no, status) SELECT 2, level2_no, 0 FROM transition_table_level2
<gh_stars>10-100 -- file:select.sql ln:114 expect:true SELECT p.name, p.age FROM person* p ORDER BY age using >, name
<reponame>Shuttl-Tech/antlr_psql -- file:create_view.sql ln:523 expect:true select * from int8_tbl i, lateral(values(i.*::int8_tbl)) ss
create database EmployeeManager; use EmployeeManager; create table department ( id int auto_increment, name varchar(30) not null, primary key(id) ); create table role ( id int auto_increment, title varchar(30) not null, salary decimal(9.8) not null, dept_id int not null, ...
<filename>fe/fe-core/src/test/resources/sql/optimized-plan/predicate-pushdown.sql<gh_stars>0 [sql] select v1, v2, ta, td from t0 inner join tall on t0.v1 = tall.td [result] INNER JOIN (join-predicate [1: v1 = 7: td] post-join-predicate [null]) SCAN (columns[1: v1, 2: v2] predicate[null]) EXCHANGE SHUFFLE[7] ...
-- -- /packages/acs-kernel/sql/rel-constraints-create.sql -- -- Add support for relational constraints based on relational segmentation. -- -- @author <NAME> (<EMAIL>) -- @creation-date 2000-11-22 -- @cvs-id $Id: rel-constraints-body-create.sql,v 1.5 2004/03/12 18:48:49 jeffd Exp $ -- Copyright (C) 1999-2000 ArsDigit...
-- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION pgexpanded" to load this file. \quit CREATE TYPE matrix; CREATE FUNCTION matrix_in(cstring) RETURNS matrix AS '$libdir/pgexpanded', 'matrix_in' LANGUAGE C IMMUTABLE STRICT; CREATE FUNCTION matrix_out(matrix) RETURN...
<reponame>fungi8/o2o CREATE TABLE `tb_area` ( `area_id` int(2) NOT NULL AUTO_INCREMENT COMMENT '区域ID' , `area_name` varchar(200) NOT NULL COMMENT '区域名称' , `priority` int(2) NOT NULL DEFAULT 0 COMMENT '区域优先级' , `create_time` datetime DEFAULT NULL COMMENT '区域创建时间' , `last_edit_time` datetime DEFAULT NULL C...
-- MySQL dump 10.13 Distrib 5.7.33, for Linux (x86_64) -- -- Host: localhost Database: blog -- ------------------------------------------------------ -- Server version 5.7.33-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R...
<reponame>jackjson2312/management-website<filename>CSDL/ltweb(3).sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: localhost:3306 -- Thời gian đã tạo: Th12 27, 2017 lúc 03:42 PM -- Phiên bản máy phục vụ: 5.7.18 -- Phiên bản PHP: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_...
<reponame>abcwp/java-all-call-graph CREATE TABLE if not exists manual_add_extended_data_{appName} ( data_id integer(18) NOT NULL AUTO_INCREMENT COMMENT '自增主键', caller_full_method text NOT NULL COMMENT '调用方,完整方法(类名+方法名+参数)', callee_full_method text NOT NULL COMMENT '被调用方,完整方法(类名+方法名+参数)', callee_seq_in_calle...
/* -- Query: SELECT * FROM wedding.tb_package LIMIT 0, 1000 -- Date: 2017-05-02 07:44 */ INSERT INTO `tb_package` (`package_id`,`package_name`,`package_price`,`package_content`,`package_sales`,`package_menuA`,`package_menuB`,`tb_hotel_hotel_id`) VALUES (1,'1699元套餐','1699','6个冷菜、1个汤、10个热菜、2个点心、1个主食、1盘水果','0','img/pPk58...
<gh_stars>100-1000 SELECT p.oid :: int8 AS id, n.nspname AS schema, p.proname AS name, l.lanname AS language, CASE WHEN l.lanname = 'internal' THEN '' ELSE p.prosrc END AS definition, CASE WHEN l.lanname = 'internal' THEN p.prosrc ELSE pg_get_functiondef(p.oid) END AS complete_statement,...
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 31, 2017 at 07:14 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
--------------------- -- Tablespaces --------------------- DECLARE l_count NUMBER; BEGIN SELECT COUNT(*) INTO l_count FROM dba_tablespaces WHERE tablespace_name = 'TBSCLOB'; IF l_count = 0 THEN EXECUTE IMMEDIATE 'CREATE TABLESPACE "TBSCLOB"'; END IF; END; / DECLARE l_count NUMBER; BEGIN...
DROP TABLE IF EXISTS sirenTypes;
<gh_stars>0 insert into hearing ( hearing_id, status) values ('2000000000', 'UPDATE_SUBMITTED'); insert into case_hearing_request ( case_hearing_id, auto_list_flag, hearing_type, required_duration_in_minutes, hearing_priority_type, number_of_physical_attendees, hearing_in_welsh_flag, private_hearing_required_flag, le...
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (i686) -- -- Host: 127.0.0.1 Database: facts -- ------------------------------------------------------ -- Server version 5.5.58-0+deb8u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 04, 2018 at 08:17 PM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>ethiry99/HW7_Pewlett_Hackard<gh_stars>0 drop table retirement_titles; --create table retirement_titles --retrieve titles of employees with birth years 1952 through 1954 SELECT em.emp_no, em.first_name, em.last_name, ti.title, ti.from_date, ti.to_date INTO retirement_titles FROM employees as em left join tit...
insert into contact(fullname, email, phone, birthday) values ('<NAME>', '<EMAIL>', '11998877662', now()); insert into contact(fullname, email, phone, birthday) values ('<NAME>', '<EMAIL>', '229988776655', now()); insert into contact(fullname, email, phone, birthday) values ('<NAME>', '<EMAIL>', '12987656525', now()); i...
CREATE TABLE public.servers ( id serial NOT NULL, name text NOT NULL, description text NOT NULL, ip text NOT NULL, port integer NOT NULL, online_users integer DEFAULT 0, max_users integer DEFAULT 1000, protocol_version integer DEFAULT 327, active boolean DEFAULT 't', PRIMARY KEY ...
<reponame>joinmytalk/satsuma<gh_stars>1-10 CREATE TABLE IF NOT EXISTS commands ( id INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL, session_id INTEGER NOT NULL, cmd VARCHAR(32) NOT NULL, page INTEGER NOT NULL, timestamp DATETIME NOT NULL, FOREIGN KEY (session_id) REFERENCES sessions(id) ON DELETE CASCADE );
-- Host: Neptune\SQL2014 -- Database: [AdventureWorks] -- Table: [Sales].[Store] -- Column(s) Demographics are not included in this script because they are of type(s) text, ntext, varchar(max), nvarchar(max), varbinary(max), image, timestamp, or xml. Columns of these types cannot be updated by tablediff utility scripts...
<reponame>cloudzombie/scam<filename>app/install/07_create_bitcoin_transactions_table.sql<gh_stars>1-10 USE scam; CREATE TABLE IF NOT EXISTS `bitcoin_transactions` ( `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `tx_id` varchar(64) NOT NULL UNIQUE, `raw_tx` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8m...
<gh_stars>1-10 -- Problem 15: Hotel Database --- Employees (Id, FirstName, LastName, Title, Notes) --- Customers (AccountNumber, FirstName, LastName, PhoneNumber, EmergencyName, EmergencyNumber, Notes) --- RoomStatus (RoomStatus, Notes) --- RoomTypes (RoomType, Notes) --- BedTypes (BedType, Notes) --- Rooms (RoomNumbe...
<reponame>DeveloppeurPascal/COVID-ContactTracing-RestauBar CREATE TABLE etablissements ( IDEtablissement BIGINT AUTO_INCREMENT NOT NULL, RaisonSociale VARCHAR(255) NOT NULL, IDTypeEtablissement BIGINT NOT NULL DEFAULT 0, ClePrivee CHAR(64), ClePublique CHAR(64), PRIMARY KEY (IDEtablissement) ); CREATE TABL...
-- wal2.test -- -- execsql { PRAGMA wal_autocheckpoint = 1000 } PRAGMA wal_autocheckpoint = 1000
<filename>test/fixtures/roles.sql \set AUTHENTICATOR current_user DROP ROLE IF EXISTS postgrest_test_anonymous, postgrest_test_default_role, postgrest_test_author; CREATE ROLE postgrest_test_anonymous; CREATE ROLE postgrest_test_default_role; CREATE ROLE postgrest_test_author; GRANT postgrest_test_anonymous, postgrest...
<reponame>askmohanty/metasfresh -- 2021-11-04T11:15:14.759Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,Description,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog...
CREATE OR REPLACE FUNCTION nhdplus_navigation30.nav_pp( IN obj_start_flowline nhdplus_navigation30.flowline ,IN obj_stop_flowline nhdplus_navigation30.flowline ) RETURNS INTEGER VOLATILE AS $BODY$ DECLARE rec RECORD; int_count INTEGER; int_check INTEGER; BEGIN ------...
<gh_stars>0 CREATE TABLE IF NOT EXISTS animals ( id SERIAL PRIMARY KEY, name VARCHAR, health VARCHAR, age VARCHAR, location VARCHAR, rangerName VARCHAR ); CREATE TABLE IF NOT EXISTS sightings ( id SERIAL PRIMARY KEY, name VARCHAR );
<gh_stars>0 INSERT INTO `medicos` (`nome`, `sobrenome`, `login`, `senha`, `email`, `crm`,`refresh_token`, `refresh_token_expiry_time`) VALUES ('Irineu', 'Dias', 'irineu.dias', '24-0B-E5-18-FA-BD-27-24-DD-B6-F0-4E-EB-1D-A5-96-74-48-D7-E8-31-C0-8C-8F-A8-22-80-9F-74-C7-20-A9', '<EMAIL>', '5654' ,'h9lzVOoLlBoTbcQrh/e16/aI...
<gh_stars>1-10 CREATE TABLE [dbo].[posts_mst] ( [PostID] NUMERIC (18) IDENTITY (1, 1) NOT NULL, [UserID] NUMERIC (18) NOT NULL, [post_heading] NVARCHAR(100) NOT NULL, [post_text] NVARCHAR (MAX) NOT NULL, [post_image] VARCHAR (MAX) NULL, [dated] DATETIME NOT NULL, ...
Drop database if exists nbr_test_e6aa52;Drop database if exists nbr_test_bc5ff1;Drop database if exists nbr_test_ba5408;
<reponame>devnw/aegis DROP PROCEDURE IF EXISTS `DeleteDecomIgnoreForDevice`; CREATE PROCEDURE `DeleteDecomIgnoreForDevice`(_sourceID VARCHAR(36), _devID VARCHAR(36), _orgID VARCHAR(36)) #BEGIN# UPDATE `Ignore` SET Active = b'0' WHERE SourceID = _sourceID AND DeviceID = _devID AND OrganizationID = _orgID AND TypeId...
{%- test expect_table_row_count_to_equal_other_table(model, compare_model, factor=1, row_condition=None, compare_row_condition=None) -%} {{ dbt_expectations.test_equal_expression(model, "count(*)", compare_model=compare_model, compare_expression="count(*) * " + factor|string, row_condition=row_condition, ...
<reponame>ksb3214/Flump -- MySQL dump 8.23 -- -- Host: localhost Database: mp3 --------------------------------------------------------- -- Server version 3.23.58 -- -- Table structure for table `queue` -- DROP TABLE IF EXISTS queue; CREATE TABLE queue ( id int(10) unsigned default NULL, user int(10) unsigned ...
<filename>api.sql -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Янв 19 2022 г., 10:12 -- Версия сервера: 10.5.11-MariaDB-log -- Версия PHP: 7.4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
--pass exceptional data of time/timestamp/datetime type to the parameter --1. [error] exceptional argument of date type select dayofweek(date'000/000/000'); select dayofweek(date'12\30\2009'); select dayofweek(date'1999-10=21'); select dayofweek(date'12/14/2012/33'); select dayofweek(date'-11/23/1898'); select d...
<filename>db/add_cpt_schema_objects.sql CREATE TABLE activity_line_items ( id int(11) AUTO_INCREMENT NOT NULL, object_key varchar(12) NOT NULL, capital_project_id int(11) NOT NULL, fy_year int(11) NOT NULL, team_ali_code_id int(11) NOT NULL, name varchar(64) NO...
-- MariaDB dump 10.19 Distrib 10.4.21-MariaDB, for Win64 (AMD64) -- -- Host: bcu8tjtaure2gu5pt2pa-mysql.services.clever-cloud.com Database: bcu8tjtaure2gu5pt2pa -- ------------------------------------------------------ -- Server version 8.0.22-13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
<reponame>geophile/sql-layer -- this was inspired by test-right-join which was caused by Sequel gem schema parsing SELECT t3.c1,t3.c2,t1.c3 FROM t1 INNER JOIN t2 ON (t1.c3 = 333) AND (t1.c1 = t2.c2) AND (t1.c2 = t2.c2) LEFT OUTER JOIN t3 USING (c1, c2) WHERE t3.c1 = 111 AND t3.c2 = 222
<reponame>kemaldemirgil/e-tracker<filename>db/seeds.sql<gh_stars>0 INSERT INTO department(department_name) VALUES ("Sales"), ("Engineering"), ("Finance"), ("Legal"); INSERT INTO role(title, salary, department_id) VALUES ("Sales Lead", 100000, 1), ("Salesperson", 80000, 1), ("Lead Engineer", 150000, 2), ("Software Engi...
ALTER TABLE `ports-state` CHANGE `ifInOctets_perc` `ifInOctets_perc` INT NULL DEFAULT NULL; ALTER TABLE `ports-state` CHANGE `ifOutOctets_perc` `ifOutOctets_perc` INT NULL DEFAULT NULL;
SELECT * FROM tabloKitap FULL OUTER JOIN tabloMusteri ON KitapID=MusteriID
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 8.0.15, for Win64 (x86_64) -- -- Host: localhost Database: statistics -- ------------------------------------------------------ -- Server version 8.0.15 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
<reponame>UxioAndrade/go-sql-tutorial<gh_stars>1-10 CREATE DATABASE todos_db; \connect todos_db; CREATE TABLE todos( id SERIAL NOT NULL PRIMARY KEY, description VARCHAR(100), priority INT, status VARCHAR(100) );
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Erstellungszeit: 02. Apr 2020 um 14:56 -- Server-Version: 10.4.11-MariaDB -- PHP-Version: 7.2.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
<gh_stars>10-100 -- AlterTable ALTER TABLE "User" ADD COLUMN "teamId" INTEGER; -- CreateTable CREATE TABLE "Team" ( "id" SERIAL, "name" TEXT NOT NULL, "nameForUrl" TEXT NOT NULL, "twitterName" TEXT, "bio" TEXT, "recruitingPost" TEXT, "inviteCode" TEXT NOT NULL, "captainId" INTEGER NOT N...
-- pagesize.test -- -- execsql { -- INSERT INTO t1 VALUES(1,2,3); -- INSERT INTO t1 VALUES(2,3,4); -- SELECT * FROM t1; -- } INSERT INTO t1 VALUES(1,2,3); INSERT INTO t1 VALUES(2,3,4); SELECT * FROM t1;
<reponame>usdot-fhwa-stol/WxDE<filename>WDE/dbscripts/dml_wde_obstypes.sql /* Table "meta.obstype" Column | Type | Modifiers | Storage | Stats target | Description ------------------+--------------------------+--------------------...
IF NOT EXISTS (SELECT Id FROM [Toys] WHERE Id=1) BEGIN INSERT INTO [Toys] (Id, Name, Description, Price, ImageId) VALUES (1, 'Glitter Drone 3000', 'Spray glitter on an unsuspecting target.', 350, 'drone-1') END IF NOT EXISTS (SELECT Id FROM [Toys] WHERE Id=2) BEGIN INSERT INTO [Toys] (Id, Name, Description, Price,...
<filename>orcas_core/build_source/orcas_db_objects/scripts/util/extract_replaceables_sources.sql<gh_stars>0 -- Parameters: -- 1: Filename for temp-file -- 2: fileprefix for filenames (with path) -- 3: objekt typname (e.g. PACKAGE_BODY not PACKAGE BODY) -- 4: objekt name (with wildcards) set pagesize 0 set long 320...
<reponame>bcgov/EDUC-GRAD-TRAX-API<filename>api/src/main/resources/db/migration/1.0/V1.0.11__DDL-ADD-GRANTS-grad_readonly.sql<gh_stars>0 GRANT SELECT ON REPLICATION_EVENT TO GRAD_READONLY; GRANT SELECT ON REPLICATION_SHEDLOCK TO GRAD_READONLY;
/********************************************************************************* # Copyright 2016 Observational Health Data Sciences and Informatics # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
<reponame>ggreen/cloudNativeData create schema pivotalmarkets; set search_path to pivotalmarkets; create table beaconrequest ( customerId int, deviceId text, major int, minor int, signalPower int ) distributed randomly; create table beaconresponse ( customerId int, deviceId text, major int, minor int...
DELETE FROM #__rsform_component_type_fields WHERE ComponentTypeId IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 41, 211); INSERT IGNORE INTO `#__rsform_component_type_fields` (`ComponentTypeId`, `FieldName`, `FieldType`, `FieldValues`, `Ordering`) VALUES (1, 'NAME', 'textbox', '', 1), (1, 'CAPTION', 'textbox',...
/* * $Id: plsql.sql,v 1.4 2007/08/09 03:22:21 unsaved Exp $ * * This example is copied from the "Simple Programs in PL/SQL" * example by <NAME>, <NAME>, Prof. <NAME> at * the Standord University Database Group's page * http://www-db.stanford.edu/~ullman/fcdb/oracle/or-plsql.html . * I have only removed some blan...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore CREATE TABLESPACE sync2_ts1 filespace filerep_fs_z; CREATE TABLESPACE sync2_ts2 filespace filerep_fs_z; DROP TABLESPACE sync1_ts7; DROP TABLESPACE ck_sync1_ts6; DROP TABLESPACE ct_ts4; DROP TABLESPACE resync_ts2; DROP TABLESPACE sync2_t...
<gh_stars>0 insert into burgers(burger_name) values("Crab Cake Sandwich"); insert into burgers(burger_name) values("Cheeseburger"); insert into burgers(burger_name) values("Bacon Cheeseburger");
<reponame>bmbruno/SparkServer USE [SparkServer] GO INSERT INTO [dbo].[SitecoreVersion] ([Version] ,[Revision] ,[Description] ,[Active] ,[CreateDate]) VALUES ('8.2.1' ,'123456' ,'Sitecore 8.2 Update 1' ,1 ...
<reponame>anrs07/Ordem-de-Servi-o-API CREATE TABLE IF NOT EXISTS `Endereco` ( `id` INT NOT NULL AUTO_INCREMENT, `logradouro` VARCHAR(45) NULL, `bairro` VARCHAR(45) NULL, `cep` BIGINT(45) NULL, `numero` INT NULL, `complemento` VARCHAR(45) NULL, `id_cidade` INT(11) NOT NULL, ...
-- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 09, 2020 at 10:08 AM -- Server version: 5.7.23-23 -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
<reponame>wahiddebe/newwitel -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 13, 2020 at 10:53 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
<gh_stars>0 insert into employee values ( 1234, "Dylan", "Anderson", "R", "BOSS", 2036519919, "<EMAIL>", true, true )
<reponame>akravets/chinook-database<filename>scripts/getAlbumCountByArtist_leftJoin.sql /* Selects artist name from artist table and joins album table. Groups artist name by their album count as well as displays those artists that don't have any albums. This is different then INNER JOIN because latter will return on...
\pset footer off SET client_min_messages TO WARNING; \set ON_ERROR_STOP ON INSERT INTO public.capitanias (id_capitania,nom_capitania,geometry) VALUES('CP02','Tumaco','SRID=4326;POLYGON ((-85.16647209999996 2.6222222220000617, -78.40555555599997 2.6222222220000617, -78.38505597299996 2.6222222220000617, -78.394770800999...
<reponame>aviv/sqlfluff<filename>test/fixtures/dialects/exasol/AlterUser.sql ALTER USER user_1 IDENTIFIED BY "h<PASSWORD>" REPLACE "h12_xhz"; ALTER USER user_1 IDENTIFIED BY "h<PASSWORD>"; ALTER USER user_2 IDENTIFIED AT LDAP AS 'cn=user_2,dc=authorization,dc=exasol,dc=com'; ALTER USER user_3 PASSWORD_EXPIRY_POLICY = '...
<reponame>DjordjeVucinac82/crunchbutton<filename>db/migrate/000128_chart.sql ALTER TABLE `chart` ADD `title` varchar(255) DEFAULT NULL;
SELECT COUNT(*),ta.c1,ta.c2,tb.c2,tc.c1 FROM t2 as ta, t2 as tb, t1 as tc where ta.c1 = tb.c1 AND ta.c2 <= 2 AND tb.c2 = tc.c2;