sql
stringlengths
6
1.05M
<gh_stars>1-10 DROP FUNCTION IF EXISTS enable_trigger(text, text); DROP FUNCTION IF EXISTS disable_trigger(text, text); CREATE FUNCTION enable_trigger(table_name text, trigger_name text) RETURNS void AS $$ BEGIN EXECUTE format('ALTER TABLE %I ENABLE TRIGGER %I', table_name, trigger_name); END $$ LANGUAGE plpgsql ...
<gh_stars>1-10 CREATE TABLE [dbo].[VacancyHistory] ( [VacancyHistoryId] INT IDENTITY (-1, -1) NOT FOR REPLICATION NOT NULL, [VacancyId] INT NOT NULL, [UserName] NVARCHAR (50) NOT NULL, [VacancyHistoryEventTypeId] INT ...
<gh_stars>1-10 DROP TABLE MLA.XXMLA_QUEUE_MESSAGE_LOG CASCADE CONSTRAINTS; CREATE TABLE MLA.XXMLA_QUEUE_MESSAGE_LOG ( TRANSACTION_UUID VARCHAR2(200 BYTE) NOT NULL, MAAT_ID NUMBER NOT NULL, TYPE VARCHAR2(100 BYTE), MESSAGE BLOB, CREATED_TIME TIMESTAMP (6) NOT NULL ) LOGGING NOCOMPRESS NOCACHE NOPARALLEL M...
-- -- Change AUTO_INCREMENT to IDENTITY while pushing to database, pgadmin doesnt accept AUTO_INCREMENT -- DROP TABLE IF EXISTS date_info; -- DROP TABLE IF EXISTS questionnaire; DROP TABLE IF EXISTS treatment; -- DROP TABLE IF EXISTS exercises; -- DROP TABLE IF EXISTS staff; -- DROP TABLE IF EXISTS relative_table; -- D...
<reponame>ePlusPS/scalr -- MySQL dump 10.13 Distrib 5.5.33, for Linux (x86_64) -- -- Host: localhost Database: scalr -- ------------------------------------------------------ -- Server version 5.5.33-31.1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=...
DROP VIEW v_AssistantProfessor CASCADE; CREATE OR REPLACE VIEW v_AssistantProfessor AS SELECT innerRel.x1 AS att1 FROM ( SELECT ca_0.individual AS x1 FROM concept_assertion ca_0 WHERE ca_0.concept=65 ) as innerRel
<reponame>worldcon75/api SET ROLE kansa; INSERT INTO stripe_keys (name, type, key) VALUES ('default','pk_test','pk_test_LoOP8RB3gIlLkSYIyM9G6skn'), ('default','pk_live','pk_live_vSEBxO9ddioYqCGvhVsog4pb'), ('siteselect','pk_test','pk_test_k9X10O1qQoKXD3MHNQU8KvNw'), ('siteselect','pk_live','pk_live_xZn2VzgwkIauumoxFI0...
<filename>test/integration/016_macro_tests/models/dep_macro.sql {{ dbt_integration_project.do_something("arg1", "arg2") }}
-- Tags: distributed DROP TABLE IF EXISTS realtimedrep; DROP TABLE IF EXISTS realtimedistributed; DROP TABLE IF EXISTS realtimebuff; CREATE TABLE realtimedrep(amount Int64,transID String,userID String,appID String,appName String,transType String,orderSource String,nau String,fau String,transactionType String,supplier...
<filename>pkg/database/sqlparser/testdata/alter_permission_test_data3/service_a/318-1.sql CREATE TABLE `dice_api_assets` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `asset_id` varchar(191) DEFAULT NULL, `asset_name` varchar(191) DEFAULT NULL, `desc` varchar(1024) DEFAULT NULL, `logo` varchar(1024) DEF...
-- This is compatible with SQL Server MERGE mc.t_mgr_types AS t USING ( Select 1 As mt_type_id, 'Analysis' As mt_type_name, 0 As mt_active Union Select 2, 'Archive', 0 Union Select 3, 'Archive Verify', 0 Union Select 4, 'Capture', 0 Union Select 5, 'Data Extraction', 0 Union Select 6, 'Preparation', 0 Union ...
<reponame>pmarceaujr/EmployeeDatabase insert into departments (dept_name) VALUES ('Sales'), ('Engineering'), ('Infomration Technology'), ('Human Resources'), ('Board Of Directors'); ALTER TABLE roles DROP FOREIGN KEY role_ibfk_1; insert into roles (title, salary, dept_id) VALUES ('Sales Associate',50000,1), ('Directo...
<reponame>AndreM-Gomes/gear-project<filename>src/main/resources/schema-h2.sql<gh_stars>0 CREATE TABLE IF NOT EXISTS TB_Unidade( `idUnidade` INT(11) NOT NULL AUTO_INCREMENT, `nome` VARCHAR(60) NOT NULL, PRIMARY KEY (`idUnidade`)); CREATE TABLE IF NOT EXISTS TB_Funcionario( `idFuncionario` INT(11) NOT N...
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 04, 2018 at 09:34 AM -- Server version: 5.5.54-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
--Выборка первых 10 записей из таблицы band_students SELECT * FROM public.band_students LIMIT 10; --Выборка первых 10 записей из таблицы drama_students SELECT * FROM public.drama_students LIMIT 10; --Найти студентов, которые посещают оба кружка SELECT bs.id, bs.first_name, bs.last_name F...
<gh_stars>0 drop schema ims; CREATE SCHEMA IF NOT EXISTS `ims`; USE `ims` ; CREATE TABLE IF NOT EXISTS `ims`.`customers` ( `customer_id` INT(11) NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(40) NULL DEFAULT NULL, `surname` VARCHAR(40) NULL DEFAULT NULL, PRIMARY KEY (`customer_id`) ); CREATE TABLE IF N...
<reponame>1811-nov27-net/belt-dayOne<gh_stars>0 -- CREATE, ALTER, DROP --CREATE DATABASE Pizza; CREATE SCHEMA PS; GO --GO separates "batches" CREATE TABLE PS.Pizza ( PizzaID INT NOT NULL, Name NVARCHAR(100) NOT NULL, CrustID INT NOT NULL, ModifiedDate DATETIME2 NOT NULL, CreatorName NVARCHAR(100) ); -- DROP g...
USE PeopleTracker GO /****** Object: Table dbo.PersonEmail Script Date: 6/3/2018 4:55:48 PM ******/ IF OBJECT_ID('dbo.PersonEmail', 'U') IS NOT NULL BEGIN ALTER TABLE dbo.PersonEmail DROP CONSTRAINT FK_PersonEmail_Email ALTER TABLE dbo.PersonEmail DROP CONSTRAINT FK_PersonEmail_Person DROP TABLE dbo.PersonEm...
<gh_stars>0 CREATE TABLE "PanCreactomy1_1"( "AVERAGE_MEDICARE_ALLOWED_AMT" float8, "AVERAGE_MEDICARE_PAYMENT_AMT" float8, "AVERAGE_SUBMITTED_CHRG_AMT" float8, "BENE_DAY_SRVC_CNT" integer, "BENE_UNIQUE_CNT" integer, "HCPCS_CODE" varchar(5), "HCPCS_DESCRIPTION" varchar(255), "HCPCS_DRUG_INDICATOR" varchar(1), "LINE_SRVC_...
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 07 Agu 2021 pada 22.10 -- Versi server: 10.1.34-MariaDB -- Versi PHP: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<reponame>todorkrastev/softuni-software-engineering<filename>DBMS/M01_MySQL/L07_DatabaseProgrammabilityAndTransactions/Exercises/Solutions/P08_FindFullName.sql USE `soft_uni`; DELIMITER $$$ CREATE PROCEDURE `usp_get_holders_full_name`() BEGIN SELECT CONCAT_WS(' ', `first_name`, `last_name`) AS `full_name` FROM ...
--/******************************************************************************** * Note: You can export file and create format file using bcp out command: * *>bcp "SELECT Name, Color, Price, Size, Quantity, Data, Tags FROM Product" queryout product.dat -d ProductCatalog -T * ****************************************...
<filename>database/script/create_user_mysql_server.sql<gh_stars>1-10 B1: Cài đặt MYSQL Server và MySql client comant line B2: Mở MySql comant line và chạy lệnh sau: CREATE USER 'root'@'desktop-seiegvj' IDENTIFIED WITH mysql_native_password BY '<PASSWORD>'; CREATE USER 'root'@'10.90.199.229' IDENTIFIED WITH mysql_native...
<reponame>paulissoft/oracle-build-tools<filename>db/app/ddl/src/full/02.ORACLE_TOOLS.TYPE_SPEC.T_SEQUENCE_DDL.sql<gh_stars>1-10 CREATE TYPE "ORACLE_TOOLS"."T_SEQUENCE_DDL" authid current_user under oracle_tools.t_schema_ddl ( overriding member procedure add_ddl ( self in out nocopy oracle_tools.t_sequence_ddl , p_v...
-- fts3expr.test -- -- execsql { CREATE VIRTUAL TABLE t1 USING fts3(a, b, c) } CREATE VIRTUAL TABLE t1 USING fts3(a, b, c)
<reponame>vsilgalis/sqlwatch CREATE QUEUE [dbo].[sqlwatch_exec] WITH STATUS = ON, ACTIVATION ( PROCEDURE_NAME = [dbo].[usp_sqlwatch_internal_exec_activated], MAX_QUEUE_READERS = 15, EXECUTE AS OWNER )
Trr_o_h Andre løbende overførsler fra offentlig forvaltning og service til husholdninger (mio. kr) Statistikbanken OFF10, løbenr 2.1+2.32+2.4; ---------- bowsdx Underliggende stigning i dansk aktiekurs rent tal Brugerbestemt Bestemmes konsistent med formel for endogen aktiekurs bowsd ---------- bowsex Underliggende st...
SELECT * FROM person; --INSERT INTO person(id, name, age, address) VALUES (hibernate_sequence.nextval, '汪云飞', 32, '合肥'); --INSERT INTO person(id, name, age, address) VALUES (hibernate_sequence.nextval, 'xx', 31, '北京'); --INSERT INTO person(id, name, age, address) VALUES (hibernate_sequence.nextval, 'yy', 30, '上海'); --I...
insert into App (name, slug, description, organization, website, apiKey, secret, redirectUrl, grantTypes) values ('Demo', 'demo', 'Demo', 'SpringSource', 'http://www.springsource.org', '09e749d8309f4044', '189309492722aa5a', '', 'password,authorization_code,refresh_token'); insert into AppDeveloper (app, developer...
<gh_stars>0 INSERT INTO project_mgmt_cats ( map_unit_id, mgmt_cat, proportion) VALUES(?, ?, ?)
<reponame>Aesthet/dbt-xdb {%- if target.type == 'postgres' -%} {% set arr_len_func = 'ARRAY_LENGTH' %} {%- set arr_len_xarg = ', 1' -%} {%- elif target.type == 'snowflake' -%} {% set arr_len_func = 'ARRAY_SIZE' %} {%- set arr_len_xarg = '' -%} {%- elif target.type == 'bigquery' -%} {% set arr_len_fu...
<reponame>lbouma/Cyclopath /* Copyright (c) 2006-2013 Regents of the University of Minnesota For licensing terms, see the file LICENSE. */ /* Run this script once against each instance of Cyclopath @once-per-instance */ \qecho \qecho Fix problem: Cannot call fcn./subquery from table constraint. \qecho ...
-- 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. IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.VIEWS...
<reponame>tanav2202/CMS DROP TABLE IF EXISTS articles; CREATE TABLE articles ( id smallint unsigned NOT NULL auto_increment, publicationDate date NOT NULL, # When the article was published title varchar(255) NOT NULL, # Full title of the art...
<gh_stars>1-10 ALTER TABLE DATICAL_ADMIN.authors ADD booleanColumn NUMBER(1) ALTER TABLE DATICAL_ADMIN.authors MODIFY booleanColumn DEFAULT 1
<reponame>khuddlefish/gpdb<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep_end_to_end/misc/ctlog_xlog_cons_cleanup/sql/ctlog_xlog_cons_cleanup.sql -- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore drop table r1; drop table ao;
DROP VIEW IF EXISTS view_buku_pengeluaran_paringin; CREATE VIEW view_buku_pengeluaran_paringin AS SELECT * FROM view_buku_pengeluaran_kabupaten WHERE 1 = 1 AND id_skpd = 28; GRANT ALL PRIVILEGES ON view_buku_pengeluaran_paringin TO lap_paringin; REVOKE INSERT, UPDATE, DELETE ON view_buku_pengeluaran_paringin FROM...
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/KEYWORDS/coalesce/Opengauss_Function_Keyword_Coalesce_Case0028.sql -- @testpoint: opengauss关键字coalesce(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists coalesce_test; create table coalesce_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exis...
<reponame>HarryBrown01/IMS-Starter<filename>src/test/resources/sql-data.sql INSERT INTO `customers` (`first_name`, `surname`) VALUES ('jordan', 'harrison'); INSERT INTO `customers` (`first_name`, `surname`) VALUES ('harry', 'brown'); INSERT INTO `items` (`name`, `price`) VALUES ('Shoes', '12.99'); INSERT INTO `items` ...
DROP SCHEMA IF EXISTS Mild_Cheddar DROP SCHEMA IF EXISTS Sharp_Cheddar DROP SCHEMA IF EXISTS Gouda DROP SCHEMA IF EXISTS Swiss
-- from 9840 -- to 9860 -- (?<=.)(tl)(?=.) insert into evolve_law_tbl(lang_from_id, lang_to_id, priority, sound_regex_from, sound_to) values -- example (9840, 9860, 0, '(p)(?=.*kʷ)', 'kʷ'), -- Loss of final *m* (2.5.4) and initial *h* (2.5.2). (9840, 9860, 0, 'm$', ''), -- *v* fricatized to /β/ (2.5.3.1): non-syllabi...
<reponame>mrsalmon1976/DbScriptDeploy<gh_stars>0 DECLARE @tblExists int; SELECT @tblExists = COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'dbo' AND TABLE_NAME = 'ScriptLog'; IF @tblExists = 0 BEGIN CREATE TABLE [dbo].[ScriptLog]( [Id] [uniqueidentifier] NOT NULL, [Name] [varchar](500) NOT NULL, ...
<gh_stars>0 CREATE TABLE train ( train_no VARCHAR(10) PRIMARY KEY, station_train_code VARCHAR(10), start_station_telecode VARCHAR(10), start_station_name VARCHAR(10), end_station_telecode VARCHAR(10), end_station_name VARCHAR(10), from_station_telecode VARCHAR(10), from_station_name VARC...
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2015 at 05:46 PM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 08, 2021 at 08:15 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 7.3.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
INSERT INTO dbo.user_follows (id_user_from, id_user_to) VALUES (0, 0); INSERT INTO dbo.user_follows (id_user_from, id_user_to) VALUES (1, 1); INSERT INTO dbo.user_follows (id_user_from, id_user_to) VALUES (2, 2); INSERT INTO dbo.user_follows (id_user_from, id_user_to) VALUES (3, 3); INSERT INTO dbo.user_follows (id_use...
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 23, 2014 at 12:14 PM -- Server version: 5.5.17 -- PHP Version: 5.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
<gh_stars>1-10 -- tags create table tags ( id serial, name varchar(200) not null, description varchar(200), create_at timestamp not null, update_at timestamp not null ); -- categories create table categories ( id serial, name varchar(200) not null, description varchar(200), create_a...
SET search_path TO agencia_bancaria; -- 1) Selecionar o nome do funcionario e seu respectivo dependente SELECT funcionario.nome, dependente.nome FROM funcionario INNER JOIN dependente ON dependente.funcionario = funcionario.numfunc; -- 2) Clientes que geraram o cupom, e o numero do cupom SELECT cupom.numero, conta_c...
<reponame>lucaleone/University-Roma-Tre-tests-and-exams<gh_stars>1-10 set search_path to "esame2013"; --creo la relazione impiegati create table impiegati ( matricola numeric not null primary key, cognome character(20) not null, nome character(20) not null, eta numeric ); --creo la relazione progetti create...
CREATE TABLE [ssas].[TMSCHEMA_PERSPECTIVE_MEASURES] ( [databasename] NVARCHAR (128) CONSTRAINT [DF_TMSCHEMA_PERSPECTIVE_MEASURES_databasename] DEFAULT (N'mydatabase') NOT NULL, [ID] NUMERIC (20) NOT NULL, [PerspectiveTableID] NUMERIC (20) NOT NULL, [MeasureID] NUMERIC...
<gh_stars>100-1000 Create table If Not Exists Tweets(tweet_id int, content varchar(50)); Truncate table Tweets; insert into Tweets (tweet_id, content) values ('1', 'Vote for Biden'); insert into Tweets (tweet_id, content) values ('2', 'Let us make America great again!');
<filename>resources/db/patches/mysql/0070~tmux.sql UPDATE `tmux` SET `value` = '0' WHERE `setting` = 'BACKFILL'; DELETE FROM `tmux` WHERE `setting` = 'BACKFILL_DELAY'; DELETE FROM `tmux` WHERE `setting` = 'BACKFILL_TYPE'; UPDATE `site` set `value` = '70' where `setting` = 'sqlpatch';
<gh_stars>0 insert into sh_parm_t (sh_parm_nmspc_cd,sh_parm_dtl_typ_cd,sh_parm_nm,sh_parm_typ_cd,sh_parm_txt,sh_parm_desc,sh_parm_cons_cd,active_ind) values ('KRA-B','D','consortiumFnaCostElements','CONFG','420630;420610','Cost elements considered to be consortium F and A','A','Y'); insert into sh_parm_t (sh_parm_nms...
<reponame>Barski-lab/biowardrobe-airflow-analysis<gh_stars>1-10 ALTER TABLE `ems`.`experimenttype` ADD workflow VARCHAR(255) CHARACTER SET utf8, ADD template TEXT CHARACTER SET utf8, ADD upload_rules TEXT CHARACTER SET utf8;
CREATE FUNCTION func406() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE29);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE81);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE270);val:=(SELECT COUNT(*)INTO MYCOUNT...
set max_parallel_workers_per_gather to 0; set work_mem to 1000000; set decision_method to dp; set enable_incremental to on; set tpch_updates to 'lineitem'; set iqp_query to 'q6'; set gen_mem_info to off; set memory_budget to :v_budget; set tpch_delta_mode to :v_mode; set bd_prob to :v_prob; select i6_l_linenumber...
<filename>test/fixtures/tables/defaults.sql<gh_stars>10-100 CREATE TABLE "customer_product_categories" ( id serial PRIMARY KEY, name text NOT NULL, effective tstzrange DEFAULT '[-infinity,infinity]' )
-- @testpoint:opengauss关键字preceding(非保留),作为存储过程名 --关键字不带引号-成功 drop procedure if exists preceding; create procedure preceding( section number(6), salary_sum out number(8,2), staffs_count out integer) is begin select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; end;...
CREATE DATABASE beta_wtf_bbq; \c beta_wtf_bbq; CREATE TABLE account (id SERIAL PRIMARY KEY, name VARCHAR(255), email VARCHAR(255), password_hash VARCHAR(255)); CREATE TABLE ingredient (id SERIAL PRIMARY KEY, name VARCHAR(255), quantity DECIMAL, food_group VARCHAR(255)); CREATE TABLE recipe (id SERIAL PRIMARY KEY, name ...
insert into caretaker (username, average_rating, date_started) values ('dledram0', 0.0, '2004-10-31' ); insert into caretaker (username, average_rating, date_started) values ('pcanceller1', 0.0, '2011-05-04' ); insert into caretaker (username, average_rating, date_started) values ('...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 19, 2020 at 11:00 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<filename>sql/yjbb/603721.sql EXEC [EST].[Proc_yjbb_Ins] @Code = N'603721',@CutoffDate = N'2017-09-30',@EPS = N'0.734',@EPSDeduct = N'0',@Revenue = N'2.79亿',@RevenueYoy = N'-20.80',@RevenueQoq = N'-',@Profit = N'5705.98万',@ProfitYoy = N'141.98',@ProfiltQoq = N'-',@NAVPerUnit = N'5.3603',@ROE = N'15.12',@CashPerUnit = N...
INSERT INTO g2receipt VALUES (2901, '2020-11-07', 250, 2701, 2001) ; INSERT INTO g2receipt VALUES (2902, '2020-11-15', 350, 2702, 2002) ; INSERT INTO g2receipt VALUES (2903, '2020-08-20', 750, 2703, 2003) ; INSERT INTO g2receipt VALUES (2904, '2020-07-18', 9800, 2704, 2004) ; INSERT INTO g2receipt VALUES (2905, '2020-1...
create or replace function londiste.local_remove_table( in i_queue_name text, in i_table_name text, out ret_code int4, out ret_note text) as $$ -- ---------------------------------------------------------------------- -- Function: londiste.local_remove_table(2) -- -- Remove table. -- -- Parameters: -- ...
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5513241_sys_gh4961_AddNewImportFormatForAccounts.sql -- INSERT INTO public.ad_impformat (ad_impformat_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, description, ad_table_i...
-- 16.05.2016 18:51 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogg...
SELECT Name as 'Customers' FROM Customers WHERE Id IN (SELECT Customers.Id FROM (Customers LEFT JOIN Orders ON Customers.Id = Orders.CustomerId) WHERE Orders.CustomerId IS NULL);
# Host: localhost (Version: 5.7.10-log) # Date: 2016-05-04 16:48:57 # Generator: MySQL-Front 5.3 (Build 4.271) /*!40101 SET NAMES utf8 */; # # Structure for table "order" # DROP TABLE IF EXISTS `order`; CREATE TABLE `order` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL CO...
DROP TABLE IF EXISTS favorite; DROP TABLE IF EXISTS product; DROP TABLE IF EXISTS profile; CREATE TABLE profile ( profileId INT UNSIGNED AUTO_INCREMENT NOT NULL, profileActivationToken CHAR(32), profileAtHandle VARCHAR(32) NOT NULL, profileEmail VARCHAR(128) UNIQU...
<reponame>Apoorv27/Leetcode-Solutions<gh_stars>0 select ifnull((select distinct salary from employee order by salary desc limit 1,1),null) as SecondHighestSalary
/*==============================================================*/ /* DBMS name: PostgreSQL 9.x */ /* Created on: 29.01.2018 0:24:30 */ /*==============================================================*/ create SEQUENCE if not exists SEQ_USERS start with ...
#("###")#(upClassName)分页查询 带模糊查询功能 #("#")sql("getPage") SELECT * FROM #(tableMeta.name) WHERE ( #(tableMeta.name).name LIKE #("#")para(searchKey) ) AND #(tableMeta.name).create_time BETWEEN #("#")para(dateStartStr) AND #("#")para(dateEndStr) #("#")if(sortName!=null) ORDER BY #(tableMeta.name).#(...
EXEC SQL FETCH NEXT FROM cur1 INTO DESCRIPTOR sqlda1;
def A = Choose { x = Match "ab" ; y = Match "a" } def B = Choose1 { z = A ; t = Match "a" } def Main = { p = B; q = Match "bb"; END} <| { p = B; q = Match "bb"; END}
--+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table t1( a char(1200), b varchar(1200), c nchar(1200), d NCHAR VARYING(1200), e BIT(1200), f BIT VARYING(1200), g int, h SMALLINT, i BIGINT, j NUMERIC, k FLOAT, l DOUBLE, m MONETARY, n DATE, o TIME, p TIMESTAMP, q DATETIME); i...
-- This file is automatically generated by LogicalPlanToSQLSuite. SELECT value, MAX(key + 1) OVER (PARTITION BY key % 5 ORDER BY key % 7) AS max FROM parquet_t1 -------------------------------------------------------------------------------- SELECT `gen_attr` AS `value`, `gen_attr` AS `max` FROM (SELECT `gen_attr`, `ge...
<filename>data/schema.sql DROP TABLE IF EXISTS tabless; CREATE TABLE tabless( id SERIAL PRIMARY KEY, name VARCHAR(255), img VARCHAR(255), level VARCHAR(255) );
<reponame>JoshuaNugraha/webdev # ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.5-10.4.11-MariaDB) # Database: tobong_property # Generation Time: 2021-09-23 0...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: 29-Ago-2018 às 11:40 -- Versão do servidor: 5.7.21 -- PHP Version: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 26, 2017 at 08:22 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
<gh_stars>0 --on distributor EXEC sp_browsereplcmds '0x000B2B290000295000B700000000', '0x000B2B290000295000B700000000'
<filename>src/Plugin.NishTech.Sample.IntegrationProcessor/SQL Scripts/master-script.sql Select top 100 'Insert Into Customer Select ' + 'Id=' + isnull('''' + convert(varchar(50),Id) + '''','null') + ', ' + 'AccountNumber=' + isnull('''' + replace(CustomerNumber,'''','''''') + '''','null') + ', ' + 'AccountStatus=' ...
<reponame>tushartushar/dbSmellsData SELECT * FROM dual
<gh_stars>1-10 --USE Geography SELECT [PeakName] FROM Peaks ORDER BY PeakName ASC
<gh_stars>10-100 -- file:roleattributes.sql ln:8 expect:true ALTER ROLE regress_test_superuser WITH SUPERUSER
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5498910_sys_gh4467-app_clean_out_c_payment_oprocess.sql -- -- PaymentOnline -- -- 2018-08-07T10:53:18.388 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Process_Trl WHERE AD_P...
--liquibase formatted sql --changeset chris:1518459393910-1 CREATE TABLE call_detail_record (id VARCHAR(255) NOT NULL, create_date datetime NULL, update_date datetime NULL); --changeset chris:1518459393910-2 CREATE TABLE call_detail_record_data (cdr_id VARCHAR(255) NOT NULL, value VARCHAR(255) NULL, name VARCHAR(255)...
<reponame>miohana/TreinamentoViceri CREATE TABLE [dbo].[Video] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Nome] VARCHAR (50) NOT NULL, [Duracao] INT NOT NULL, [IdCapitulo] INT NOT NULL, [CodigoYoutube] VARCHAR(100) NULL, CONSTRAINT [PK_Video] PRIMARY KEY ...
<reponame>wiltonlazary/snappydata PUT INTO ADJUSTMENT SELECT 300,300 , ?, 76837, 161, 775324, 4313, 80200.7189,'iT', '2016-05-09 12:46:31.0', 520989, 9623, 592283, 68854, 165363, '2016-07-02 12:46:31.0', '2016-06-15 12:46:31.0',889,89; PUT INTO BANK SELECT 48444, 48444, ?, 48444, 'l', 'NAeaAJhqG', '2016-05-09 12:...
################################### # test for aop ################################### CREATE TABLE aop_account ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(40), money FLOAT ) CHARACTER SET utf8 COLLATE utf8_general_ci; INSERT INTO account (name, money) VALUES ('aaa', 1000); INSERT INTO account (n...
<gh_stars>10-100 CREATE TYPE auth.user_status_enum as enum('pending', 'active', 'invited', 'blocked'); CREATE TABLE IF NOT EXISTS auth.users ( _id serial primary key, created_at timestamp with time zone NOT NULL DEFAULT NOW(), updated_at timestamp with time zone NOT NULL DEFAULT NOW(), deleted_at timestamp wi...
/* ---------------------------------------------------------------------- */ /* Script generated with: DeZign for Databases 11.1.0 */ /* Target DBMS: MS SQL Server 2017 */ /* Project file: APP_HMR.dez */ /* Project n...
{% if var("finance_warehouse_journal_sources") %} {{ config( unique_key='profit_and_loss_pk', alias='profit_and_loss_report_fact' ) }} with spine as ( {{ dbt_utils.date_spine( datepart="month", start_date="cast('2019-01-01' as date)", end_date=db...
<reponame>freshTicket/APIJSON-Demo CREATE TABLE sys."Function" ( id bigint PRIMARY KEY NOT NULL, name varchar(30) NOT NULL, arguments varchar(100), demo text NOT NULL, detail varchar(1000), date timestamp(6) NOT NULL, back varchar(45), requestlist varchar(45), "userId" bigint DEFAULT...
<gh_stars>1-10 select datetimetz'1891-3-14 23:47:48 Africa/Algiers LMT'; select datetimetz'1891-3-14 23:47:49 Africa/Algiers LMT'; select datetimetz'1891-3-14 23:47:50 Africa/Algiers LMT'; select datetimetz'1891-3-14 23:47:48 Africa/Algiers PMT'; select datetimetz'1891-3-14 23:47:49 Africa/Algiers PMT'; select datetim...
SELECT * FROM Teams
<reponame>kddills/Ops301d1 SELECT * FROM SalesLT.Product WHERE ListPrice <30 SELECT EmailAddress, PasswordHash, PasswordSalt FROM SalesLT.Customer
-- MySQL Script generated by MySQL Workbench -- Thu Feb 14 01:46:59 2019 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON...
insert into city values (2939476,"Dagow","DE",13.06667,53.150002), (2817321,"Vierow","DE",13.21667,53.98333), (2804766,"Zentbechhofen","DE",10.9,49.76667), (2862000,"Nordgeorgsfehn","DE",7.7,53.26667), (2831654,"Sohnstedt","DE",11.16667,50.966671), (2820317,"Uhry","DE",10.85758,52.296928), (2889428,"Kleinensiel","DE",8...