sql
stringlengths
6
1.05M
CREATE DATABASE js; USE js; CREATE TABLE buy_methods ( buy_code CHAR(4) NOT NULL, buy_desc CHAR(25) NOT NULL, PRIMARY KEY (buy_code) ); ALTER TABLE buy_methods COMMENT 'store, internet, TE.'; CREATE TABLE payment_methods ( pay_code CHAR(4) NOT NULL, ...
<gh_stars>100-1000 select foo is true, foo is not true, foo is false, foo is not false, foo is unknown, foo is not unknown from bar
/*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ DROP PUBLIC SYNONYM ZSTG_GENE_HOMOLOGUE_REFERENCE / -- -- ZSTG_GENE_HOMOLOGUE_REFERENCE (Synonym) -- -- Dependencies: -- ZSTG_GENE_HOMOLOGUE_REFERENCE (Table) -- CR...
<reponame>Zhaojia2019/cubrid-testcases<filename>sql/_17_sql_extension2/_02_full_test/_07_aggregate_functions/_04_var_samp/cases/var_samp_002.sql --pass a group of int/blob/clob arguments create table voo(col1 int, col2 blob, col3 clob); insert into voo values (95, bit_to_blob(b'10100101'), char_to_clob('aaaaaaa')); ...
-- @testpoint: 同义词进行DML操作 -- @modify at: 2020-11-25 --建表 drop table if exists test_SYN_056; create table test_SYN_056 (c_id int not null,c_first varchar2(40),c_since date,c_end timestamp,c_text clob,c_data blob); --插入数据 insert into test_SYN_056 values(1,'c_fisrtaaa',to_date('2018-07-28 14:22:59','yyyy-mm-dd hh24:mi:ss'...
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600726',@CutoffDate = N'2017-09-30',@EPS = N'-0.2',@EPSDeduct = N'0',@Revenue = N'62.29亿',@RevenueYoy = N'5.10',@RevenueQoq = N'2.97',@Profit = N'-3.97亿',@ProfitYoy = N'-256.06',@ProfiltQoq = N'-220.94',@NAVPerUnit = N'1.5318',@ROE = N'-12.43',@CashPerUnit = N'-0.0642',@GrossProfitR...
<reponame>christophanneser/Bao-for-Presto<filename>queries/stackoverflow/q16/29e9fefd61189a098088cbcaf10eea6364d17b08.sql SELECT 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 ...
--create sequence create sequence team_member_seq; -- create table create table team_member ( id number default on null team_member_seq.NEXTVAL constraint team_member_id_pk primary key, username varchar2(255 char) not null, ...
select UUID, ZIPCODE, ADDRESSFROMZIPCODE || STREETNUMBERS || ROOMNAME as ADDRESS, CAPTION as FAMILYNAME, MEMO as FIRSTNAMES from ADDRESSES order by ZIPCODE, ADDRESS;
<reponame>bimoadiparwa/perpusdigi -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 22, 2019 at 08:12 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zo...
<gh_stars>0 /* ============================================================================ TABLE DWH.UTL_CFG initialization/configuration per KPI BEAT ============================================================================ */ -- Configurazione Livello LOG desiderato per KPIB: abilitato fino al livello 4 (...
<gh_stars>1-10 USE test_db; INSERT into dbo.orders VALUES (10,'ord01',GETDATE(),GETDATE(),100.0,'Windstar','Ocean',1); GO
<filename>dist/tools/sql/server/bbs_skillsave.sql DROP TABLE IF EXISTS `bbs_skillsave`; CREATE TABLE `bbs_skillsave` ( `charId` int(10) DEFAULT NULL, `schameid` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(250) DEFAULT '', `skills` varchar(500) DEFAULT '', PRIMARY KEY (`schameid`) ) ENGINE=MyISAM AUTO_INCR...
-- -- foreign keys ALTER TABLE category DROP CONSTRAINT category_capability; ALTER TABLE competency DROP CONSTRAINT competency_category; ALTER TABLE course DROP CONSTRAINT course_capability; ALTER TABLE course DROP CONSTRAINT course_category; ALTER TABLE course DROP CONSTRAINT course_competency;...
<filename>src/test/resources/tkt3879.test_1.sql -- tkt3879.test -- -- execsql { -- CREATE TABLE t1 (a PRIMARY KEY, b); -- INSERT INTO t1 VALUES ('w', 1); -- INSERT INTO t1 VALUES ('z', -1); -- -- CREATE TABLE t2 (m INTEGER PRIMARY KEY, n, a, p); -- INSERT INTO t2 VALUES (25, 13, 'w', 1); -- ...
<gh_stars>10-100 -- file:alter_operator.sql ln:7 expect:true CREATE OPERATOR === ( LEFTARG = boolean, RIGHTARG = boolean, PROCEDURE = alter_op_test_fn, COMMUTATOR = ===, NEGATOR = !==, RESTRICT = customcontsel, JOIN = contjoinsel, HASHES, MERGES )
<filename>WorkTracker/DB/dbo/StoredProcedures/Invoice/spInvoice_GetBetween.sql<gh_stars>1-10 CREATE PROCEDURE [dbo].[spInvoice_GetBetween] @EmployerId uniqueidentifier, @StartDate datetime2, @EndDate datetime2 AS BEGIN SELECT * FROM Invoice WHERE [EmployerId] = @EmployerId AND (([StartDate] <= @StartDate AND @S...
<reponame>lotheac/bcproxy /* XXX db format subject to change */ CREATE TABLE IF NOT EXISTS room ( /* * These things look a little like apr1 hashes but * aren't, they contain characters not legal for base64: * $apr1$dF!!_X#W$zUxMycg35omZ3p973Tllm1 * Just store as text for now. */ id T...
<reponame>dram/metasfresh<gh_stars>1000+ delete from AD_SysConfig where Name='de.schaeffer.pay.misc.TelecashProcessor.IsSandbox';
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. PRINT N'Converting type to descriptor on [edfi].[S...
WITH ws AS (SELECT d_year AS ws_sold_year, ws_item_sk, ws_bill_customer_sk ws_customer_sk, sum(ws_quantity) ws_qty, sum(ws_wholesale_cost) ws_wc, sum(ws_sales_price) ws_sp FROM ${database}.web_sales LEFT JOIN ${database}.web_returns ON wr_order_number = ws_order_number AND ws_item_sk = wr_...
<reponame>darshannagaraja/echo<filename>echo-scheduler/src/main/resources/db/database-mysql.sql SET tx_isolation = 'READ-COMMITTED'; CREATE SCHEMA `echo` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER echo_migrate; CREATE USER echo_service; GRANT SELECT, INSERT, UPDATE, DELETE, EXECUTE, SHOW VI...
SELECT LastName, FirstName FROM Employees JOIN EmployeeTerritories ON Employees.EmployeeID = EmployeeTerritories.EmployeeID JOIN Territories ON Territories.TerritoryID = EmployeeTerritories.TerritoryID JOIN Region ON Territories.RegionID = Region.RegionID WHERE RegionDescription = 'Eastern'
use jack; update cohort d join subscriber_transform_ceg_enterprise.pseudo_id_map s on s.pseudo_id = d.pseudo_id_from_compass join eds.patient_search p on p.patient_id = s.patient_id -- and p.registered_practice_ods_code = d.PracticeODSCode set d.DateOfBirth = DATE_SUB(p.date_of_birth, INTERVAL DAYOFMONTH(p.date_of_bir...
<filename>dspace/modules/additions/src/main/resources/org/dspace/storage/rdbms/sqlmigration/postgres/V1.7.2_1__drum_database_schema_etdunit.sql ------------------------------------------------------- -- EtdUnit table ------------------------------------------------------- CREATE SEQUENCE etdunit_seq; CREATE TABLE EtdU...
SELECT id, name FROM reservation WHERE name LIKE /* @prefix(name) */'spring%' ESCAPE '$'
--liquibase formatted sql --changeset opentone:v1.0.00-104-create_view CREATE OR REPLACE VIEW v_sys_users AS SELECT u.cpny_id AS cpny_id, u.emp_no AS emp_no, u.emp_last_nm AS emp_last_nm, u.emp_nm_e AS emp_nm_e, u.emp_nm_j AS emp_nm_j, u.emp_email_addr AS e...
CREATE SERVER odbc_server FOREIGN DATA WRAPPER omnisci_odbc WITH (DATA_SOURCE_NAME='postgres')
<reponame>cuba-platform/bpm alter table BPM_PROC_INSTANCE drop column INT_ENTITY_ID^
CREATE FUNCTION reffunc2() RETURNS refcursor AS ' DECLARE ref refcursor; BEGIN OPEN ref FOR SELECT col FROM test; RETURN ref; END; ' LANGUAGE plpgsql; -- need to be in a transaction to use cursors. BEGIN; SELECT reffunc2(); reffunc2 -------------------- <unnamed cursor 1> (1 row) FETCH ALL IN "<un...
<filename>hasura/migrations/default/1620221506018_eval_evaluation_student_cycle/down.sql -- Could not auto-generate a down migration. -- Please write an appropriate down migration for the SQL below: -- CREATE OR REPLACE VIEW eval_evaluation_student_cycle AS SELECT eval_evaluation.id as evaluation_id, student....
<reponame>BOG8/Backend-basis DROP INDEX public.users_password_uindex;
<filename>apps/toi-sammenstille-kandidat/src/main/resources/db/migration/V1__init.sql CREATE TABLE sammenstiltkandidat ( aktor_id VARCHAR(20) PRIMARY KEY, kandidat TEXT );
SELECT ChainHeight, SUM(Amount) FROM issuance GROUP BY ChainHeight ORDER BY ChainHeight
<filename>migrations/2021-05-26-170729_add_janus_dumps_uris/up.sql -- Your SQL goes here ALTER TABLE recording ADD COLUMN mjr_dumps_uris text[];
<reponame>mariadb-developers/mariadb-modern-sql-samples<filename>sql/demos.sql /* Aggregate functions, Rollups/Super-Aggregates, Table Value Constructors, Set Operators, Precedence Operators */ /* Aggregate functions */ SELECT SUM(rescues) FROM demo.supers; /* Rollup / Super-aggregates */ SELECT t.name, AV...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 07, 2020 at 08:09 PM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
<reponame>adamyi/sqlite-parser -- http://www.sqlserver-dba.com/2011/09/this-is-a-followup-on-my-earlier-post-of-sql-server-test-data-generation-testing-tools-i-had-some-requests-for-my-set-up-pr.html SELECT TOP 100 S_ACCTBAL, S_NAME, N_NAME, P_PARTKEY, P_MFGR, S_ADDRESS, S_PHONE, S_COMMENT FROM "PART", SUPPLIER, PARTSU...
<gh_stars>1-10 ALTER TABLE [Producer].Producer ALTER COLUMN AnnualTurnover decimal(28, 12) NULL
<gh_stars>0 CREATE DATABASE IF NOT EXISTS `matrix` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `matrix`; -- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64) -- -- Host: 172.16.31.10 Database: matrix -- ------------------------------------------------------ -- Server version 5.5.55-0ubuntu0.14.04.1 /*!40101 SET...
<reponame>kkarpesh/spring-security-demo DROP TABLE IF EXISTS users; CREATE TABLE users ( id INT NOT NULL AUTO_INCREMENT, email VARCHAR(250) NOT NULL UNIQUE, first_name VARCHAR(250) NOT NULL, last_name VARCHAR(250) NOT NULL, password VARCHAR(250) NOT NULL, role VARCHAR(20) NOT NULL, status VARCHAR(20) NOT ...
<reponame>aravi5/drill-test-framework<filename>framework/resources/Datasources/ctas/decimal/fragments/decimal_fragments_negative.ddl SET planner.width.max_per_node=100; SET planner.slice_target=1; SET planner.enable_multiphase_agg=false; DROP TABLE IF EXISTS dfs.drillTestDir.`decimal/fragments/negative/T_DECIMAL_BIG_Z...
-- ----------------------------------------------------- -- Table `login` -- ----------------------------------------------------- DROP TABLE IF EXISTS `login`; CREATE TABLE IF NOT EXISTS `login` ( `username` VARCHAR(15) NOT NULL, `password` VARCHAR(100) NOT NULL, PRIMARY KEY (`username`) ) ENGINE=InnoDB DEFAULT...
metadata :name => "flatfile", :description => "Flatfile based discovery for node identities", :author => "R.I.Pienaar <<EMAIL>>", :license => "ASL 2.0", :version => "0.1", :url => "https://docs.puppetlabs.com/mcollective/", ...
<filename>stream_and_tasks/minimal.sql<gh_stars>1-10 -- Referenced from: -- https://stackoverflow.com/questions/59837417/is-there-a-way-to-force-run-a-snowflakes-task-now-before-the-next-scheduled-sl/65711613#65711613 -- https://stackoverflow.com/questions/65710176/snowflake-schedule-a-script-sql-with-multiple-instruct...
<reponame>doug-dianomic/fledge -- Remove HTTP North C++ plugin entries DELETE FROM fledge.configuration WHERE key = 'North_Readings_to_HTTP'; DELETE FROM fledge.scheduled_processes WHERE name='North_Readings_to_HTTP'; DELETE FROM fledge.schedules WHERE process_name = 'North_Readings_to_HTTP'; DELETE FROM fledge.statist...
with Invoices as ( select * from {{ ref('Invoices') }} ), /* Create events are defined based on the creation timestamp on the entity table. Every entity has exactly one create event. */ Invoice_create_events as ( select -- Mandatory event fields Invoices."Invoice_ID", 'Enter invoice' as...
<gh_stars>0 delete from shipment_item_delivery_plan; delete from delivery_trip_detail; delete from shipment_item; delete from inventory_item_detail; delete from inventory_item; delete from tax_authority_rate_product; delete from product_promo_product; delete from product;
<gh_stars>1-10 --update table with with a unique index --update order by asc and desc create table uoo( col1 smallint, col2 varchar(10), col3 time unique, col4 set ); insert into uoo values (1, 'fff', '10:30:42 am', {1,2,3}), (4, 'ccc', '4:31:12', {5,2,1}), (3, 'aaa', '20:12:41', {12,34,21}), (5, 'ddd', '2...
INSERT INTO team VALUES('xyz-abc-13', 'super-team', 'fc2ffb9b-04c8-4466-b632-d41e330bde82'); INSERT INTO team VALUES('1312-hype-team', 'team 1312', 'a80913ae-c301-457c-83f8-4632498dba2c'); INSERT INTO user VALUES ('21df8714-8349-11ea-bc55-0242ac130003', '<NAME>', 'RAM!', null, 0, '<EMAIL>', '$2y$12$QSsSSMRDGtBIJOZL0f...
<gh_stars>0 SELECT "Food_1"."device" AS "device" FROM "Food_1" GROUP BY 1 ORDER BY "device" ASC;
-- MySQL dump 10.13 Distrib 5.6.35, for osx10.9 (x86_64) -- -- Host: localhost Database: laraclassified -- ------------------------------------------------------ -- Server version 5.6.35 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th6 21, 2020 lúc 04:16 AM -- Phiên bản máy phục vụ: 10.4.10-MariaDB -- Phiên bản PHP: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+...
<gh_stars>0 USE pc; -- 1 SELECT * FROM product AS p WHERE (p.model NOT IN (SELECT pc.model FROM pc) AND p.model NOT IN (SELECT l.model FROM laptop AS l) AND p.model NOT IN (SELECT pr.model FROM printer AS pr)); -- 2 SELECT DISTINCT p.maker FROM product AS p WHERE (p.maker IN (SELECT p1.maker FROM product AS p...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 25, 2022 at 04:23 PM -- Server version: 10.4.22-MariaDB -- PHP Version: 8.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<reponame>pataraco/scripts<filename>learning/sql/snowflake/core_training/12-create-user-defined-functions-and-stored-procedures.sql -- 12.0.0 Create User-Defined Functions and Stored Procedures -- Expect this lab to take approximately 30 minutes. -- 12.1.0 Create a JavaScript User-Defined Function -- 12.1....
USE db_contacts; DELIMITER // # 新增记录 存储过程 DROP PROCEDURE IF EXISTS procedure_contactInsert; CREATE PROCEDURE procedure_contactInsert(contactName VARCHAR(45), contactInit VARCHAR(1), contactMark TEXT, userID INT, OUT ...
<reponame>ribafs/sgbd<gh_stars>0 /* Banco: pessoa Cenário: Modelagem de pessoas (clientes, funcionários, fornecedores, etc) para empresas, órgãos públicos ou outras instituições brasileiras. Usando o Moedelo Relacional e Normalizado (no SGBD PostgreSQL). */ -- Função de validação do CPF e CNPJ: -- *****************...
use Hr go
CREATE TABLE if not exists `season` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `leagueId` bigint(20) NOT NULL, `name` varchar(60) NOT NULL, `startDate` date NOT NULL, `endDate` date NOT NULL, `startTime` time NOT NULL, `endTime` time NOT NULL, `daysOfWeek` char(8) DEFAULT '0000011', `enabled` tinyint(...
<gh_stars>0 SET PAGES 5000 SET LINES 400 SET VERIFY OFF DEFINE deployment_dir=&1 DEFINE enter_tblsp_s=&&Enter_Tablsp_S DEFINE enter_tblsp_m=&&Enter_Tablsp_M DEFINE enter_indx_tblsp_s=&&Enter_Index_Tablsp_S DEFINE enter_indx_tblsp_m=&&Enter_Index_Tablsp_M DEFINE enter_tblsp_LOB=&&Enter_LOB_Tablsp_L @&depl...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Servidor: 1192.168.127.12 -- Tiempo de generación: 29-05-2016 a las 11:15:52 -- Versión del servidor: 5.6.17 -- Versión de PHP: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
<filename>sqlite/table creation/script.sql<gh_stars>1-10 -- Criar uma tabela com chave primária de autoincremento e uma chave unique para garintir, neste caso, que os nomes não dupliquem. CREATE TABLE TABELA ( ID INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, -- Chave primária com autoincremento. nome VARCHAR (50...
<gh_stars>1-10 USE demo DECLARE @UnixTimeStamp BIGINT = 1599624698 SELECT dbo.udf_ConvertUnixTimeStamp(@UnixTimeStamp) AS TheDate
<gh_stars>100-1000 # --- !Ups alter table project_version_unsafe_downloads add column download_type int not null default 0; alter table project_version_unsafe_downloads alter column download_type drop default; # --- !Downs alter table project_version_unsafe_downloads drop column download_type;
<gh_stars>1-10 CREATE PROCEDURE [dbo].[CheckForOverlappingEmails] @Email NVARCHAR(200), @StartDate DATETIME2, @EndDate DATETIME2, @ApprenticeshipId BIGINT, @CohortId BIGINT = NULL AS BEGIN DECLARE @emails dbo.[EmailCheckTable] INSERT INTO @emails (RowId, Email, StartDate, EndDate, ApprenticeshipId) SELECT 1,...
<gh_stars>10-100 create table translation_offer ( id bigserial, user_id text, title text, mode text, sworn bool, city text, region text, description text, modified_date timestamp not null, CONSTRAINT PK_TO_ID PRIMARY KEY...
/* Navicat MySQL Data Transfer Source Server : 192.168.0.120 Source Server Version : 50560 Source Host : 192.168.0.120:3306 Source Database : account Target Server Type : MYSQL Target Server Version : 50560 File Encoding : 65001 */ SET FOREIGN_KEY_CHECKS=0; -- -------------------...
/* Drop the errored_on column */ alter table water.billing_volumes drop column errored_on; /* Remove the existing index */ DROP index if exists uniq_charge_element_id_financial_year_season_err; /* Remove duplicated rows */ DELETE FROM water.billing_volumes WHERE ctid NOT IN ( SELECT min(ctid) FROM water.bil...
DELETE FROM IMPORT_TABLE_LOCK;
<reponame>Magenic/MyVoteGC CREATE TABLE [dbo].[MVUser] ( UserID INT identity(1,1) NOT NULL constraint pk_MVUser primary key nonclustered ,UserName nvarchar(200) not null ,ProfileID nvarchar(200) null ,ProfileAuthToken nvarchar(2100) null ,EmailAddress nvarchar(200) not null ,FirstName nvarchar(100) ,LastNam...
SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for skyworld_basic_job -- ---------------------------- DROP TABLE IF EXISTS `skyworld_basic_job`; CREATE TABLE `skyworld_basic_job` ( `job_id` int(11) NOT NULL AUTO_INCREMENT, `job_key` varchar(255) NOT NULL COMMENT '除ID...
CREATE OR REPLACE PACKAGE ut_messagefactory IS PROCEDURE ut_setup; PROCEDURE ut_teardown; -- For each program to test... PROCEDURE ut_NEWMESSAGE; PROCEDURE ut_NEWMESSAGE2; PROCEDURE ut_NEWMESSAGE3; END ut_messagefactory; / show errors CREATE OR REPLACE PACKAGE BODY ut_messagefactory IS PROCEDURE ...
<reponame>alexbosy/spring-data-jdbc<filename>spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryEmbeddedNotInAggregateRootIntegrationTests-postgres.sql DROP TABLE dummy_entity; CREATE TABLE dummy_entity ( "ID" SERIAL PRIMARY KEY, TEST VARCHAR(100) ); DROP TABLE dummy_en...
<filename>priv/elections.sql -- Get election times -- :election_times with month_interval as ( select to_timestamp(time) as timestamp, time - (lead(time) over (order by block desc)) as diff_time from transactions where to_timestamp(time) > (now() - '1 month'::interval) and type = 'consensus_g...
ALTER TABLE eth_operations DROP created_at;
<reponame>rodel-talampas/gpdb<gh_stars>1-10 -- start_ignore drop table if exists partitioned_t; drop function if exists plperl_prep(); drop function if exists plperl_run(); -- end_ignore create table partitioned_t ( a numeric, b int, c varchar ) partition by range(b) ( partition part1 start(1) end (3), default ...
<reponame>ynsingh/brihaspati2 use brihaspati; ALTER TABLE SYSTEM_CLEANTIME ADD LOAD_FLAG INTEGER(20) NOT NULL DEFAULT '0';
insert into versionhistory(patchnumber, patchlabel, patchdescription) values (6, 'create-indices', 'Create additional indices to improve query performance.'); CREATE INDEX discretecharstate_phylochar_id_idx ON discretecharstate USING btree (phylochar_id); CREATE INDEX matrixcolumn_matrix_id_idx ON mat...
select d.id as "_id", d.name as "_name", d.description as "_description", d.term_category_id as "_termCategoryId", d.data_type_id as "_dataTypeId", d.unit_id as "_unitId", d.definition_source_id as "_definitionSourceId", d.uuid as "_uuid", d.url as "_url" from public.bedes_term a...
<filename>ftb.sql DROP TABLE IF EXISTS moodplaylists; DROP TABLE IF EXISTS sptfyusers; CREATE TABLE IF NOT EXISTS sptfyusers ( userid SERIAL PRIMARY KEY, sptfyid VARCHAR(255) NOT NULL ); CREATE TABLE IF NOT EXISTS moodplaylists ( playlistdbid SERIAL PRIMARY KEY, userid INT, FOREIGN KEY (userid) REFERENCES sptfyu...
USE [DefaultDBName] GO SET ANSI_NULLS ON GO /****** Create the Stored Procedure for PM Template ******/ SET QUOTED_IDENTIFIER ON GO DROP PROCEDURE IF EXISTS score_multiclass_model GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Descrip...
CREATE TABLE public.case_hearing_request ( case_hearing_id bigint not null, auto_list_flag boolean not null, hearing_type varchar(40) not null, required_duration_in_minutes integer not null, hear...
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600733',@CutoffDate = N'2017-09-30',@EPS = N'0.002',@EPSDeduct = N'0',@Revenue = N'2207.25万',@RevenueYoy = N'340.66',@RevenueQoq = N'7081.10',@Profit = N'36.90万',@ProfitYoy = N'105.91',@ProfiltQoq = N'200.46',@NAVPerUnit = N'0.9374',@ROE = N'0.20',@CashPerUnit = N'-0.1614',@GrossPro...
// Create authors LOAD CSV WITH HEADERS FROM 'file:///authors.csv' AS row MERGE (author:Author {author_id:row.author_id}) ON CREATE SET author.author_name = row.author_name, author.cited_by = row.cited_by; // Create articles LOAD CSV WITH HEADERS FROM 'file:///articles.csv' AS row MERGE (article:Article {ar...
-- +migrate Down DROP TABLE IF EXISTS users;
<gh_stars>0 CREATE DATABASE secrets ENCODING 'UTF8'; CREATE TABLE secret (uid UUID, text text, expires timestamp, PRIMARY KEY (uid)); CREATE USER secret_app with encrypted password '<PASSWORD>'; GRANT ALL PRIVILEGES ON secrets.secret to secret_app;
<filename>table_migrations/automatedbackup_users_logs.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 27, 2021 at 01:37 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2016 at 09:15 AM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
<filename>src/model/schema.sql CREATE TABLE IF NOT EXISTS session ( id TEXT PRIMARY KEY, name TEXT NOT NULL, description TEXT NOT NULL ); CREATE TABLE IF NOT EXISTS instanceConfiguration ( id TEXT PRIMARY KEY, sessionId ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 30, 2021 at 06:53 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
<reponame>ivanred6/cfg_s20rckds1<filename>Session 2/DB_week3/sql scripts/sales_data_aggregation_practice.sql use shop; -- check how our table looks in order to proceed with queries select * from SALES1; -- Find all sales records (and all columns) that took place in the London store, not in December, -- but sales conc...
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 23, 2018 at 07:28 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<gh_stars>1-10 CREATE TABLE [dbo].[AssessmentOrganisation] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [EPAOrgId] CHAR(7) NOT NULL, [Name] NVARCHAR(128) NOT NULL, CONSTRAINT AK_EPAOrgId UNIQUE([EPAOrgId]) )
<gh_stars>10-100 SELECT id AS contactid, concat_array( quantitative_features( array( "annualrevenue", "numberofemployees" ), rescale( IF( annualrevenue IS NULL, ${td.last_results.train_avg_annualrevenue}, annualrevenue ), ${td.last_...
-- vtab1.test -- -- execsql { -- SELECT a, b, c FROM t1; -- } SELECT a, b, c FROM t1;
<reponame>VinceW0/Leetcode_Python_solutions<filename>SQL/0584. Find Customer Referee.sql<gh_stars>1-10 /* 584. Find Customer Referee Given a table customer holding customers information and the referee. +------+------+-----------+ | id | name | referee_id| +------+------+-----------+ | 1 | Will | NULL | | ...
-- Fix a Crash UPDATE `quest_template` SET `Method`=0 WHERE (`entry`=12019);
<filename>file/setting/know.sql DROP TABLE IF EXISTS `destoon_know`; CREATE TABLE `destoon_know` ( `itemid` bigint(20) unsigned NOT NULL auto_increment, `catid` int(10) unsigned NOT NULL default '0', `areaid` int(10) unsigned NOT NULL default '0', `level` tinyint(1) unsigned NOT NULL default '0', `title` varc...
<filename>db2te/tutorials/tutorials/pureXML/DataTypesInXQuery/SQL/08_QuotesNeedToBeDelimitedProperly.sql XQUERY "This doesn't have the right quotes'