sql
stringlengths
6
1.05M
<reponame>nolbertj/hms<gh_stars>0 /* ------------------------------------------------------------- @author <NAME> <<EMAIL>> */ INSERT INTO appuntamento ( id_medico, is_visita_base, is_visita_specialistica, timestamp_start, timestamp_end ) VALUES(?,false,true,?,?)
<gh_stars>0 -- Table: public.inventario -- DROP TABLE public.inventario; CREATE TABLE public.inventario ( id_usuario bigint NOT NULL, id_item bigint NOT NULL, id integer NOT NULL DEFAULT nextval('inventario_id_seq'::regclass), CONSTRAINT inventario_pkey PRIMARY KEY (id), CONSTRAINT fk_id_item FORE...
CREATE DATABASE IF NOT EXISTS ooh_media; USE ooh_media; CREATE TABLE IF NOT EXISTS `shopping_centres` ( `id` int(5) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `address` varchar(255) NOT NULL, `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHAR...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 30, 2020 at 10:13 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>Lesson5Sql/Database1/Database1/dbo/Tables/CustomerDemographics.sql CREATE TABLE [dbo].[CustomerDemographics] ([CustomerTypeID] [nchar] (10) NOT NULL , [CustomerDesc] [ntext] NULL ) ON [PRIMARY] GO ALTER TABLE CustomerDemographics ADD CONSTRAINT [PK_CustomerDemographics] PRIMARY KEY NONCLUSTERED ( ...
CREATE DATABASE setups; USE setups; CREATE TABLE setups ( name VARCHAR(100) NOT NULL, createdAt TIMESTAMP DEFAULT NOW() NOT NULL, time VARCHAR(100) DEFAULT 'Unknown' NOT NULL, roles JSON NOT NULL, channelText JSON NOT NULL, channelVoice JSON NOT NULL, channelCategory JSON NOT NULL, totalItems INT NOT N...
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jan 08, 2021 at 08:40 PM -- Server version: 10.3.27-MariaDB -- 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...
SET DEFINE OFF; CREATE INDEX AFW_14_DOMN_VALR_FK2 ON AFW_14_DOMN_VALR (REF_FORMT) LOGGING /
USE [DataQualityDB] GO IF EXISTS (SELECT 1 FROM [INFORMATION_SCHEMA].[ROUTINES] WHERE SPECIFIC_NAME = 'sEndRoutineLoad' AND SPECIFIC_SCHEMA = 'Audit') BEGIN DROP PROC [Audit].[sEndRoutineLoad] END GO /****************************************************************************** ** Author: Dar...
-- DELETE FROM customer; -- DELETE FROM price_list; INSERT INTO price_list (`price_list_id`,`name`, `high_profit_margin`, `low_profit_margin`) VALUES (1,'General',0,0),(999999,'Costo',0,0); UPDATE price_list SET price_list_id = 0 WHERE price_list_id = 999999; ALTER TABLE price_list AUTO_INCREMENT=2; INSERT INTO cus...
/* Query Inception SQL is based on Relational Theory, so every operation on a relation results in a relation A Query on a relation (e.g. a table) results in another relation (even though its no longer a table!) */ /* e.g. Get the TOP 10 Months by TotalDue for two Shipping Methods, 'ZY - EXPRESS' and 'OVERNIGHT...
update accountdetailtype set version=0;
CREATE OR REPLACE VIEW "public"."activebids" AS SELECT t.psbt, t.user_id, t.amount, t.artwork_id FROM (transactions t JOIN artworks a ON ((t.artwork_id = a.id))) WHERE t.type = 'bid'::text AND (a.transferred_at IS NULL OR t.created_at > a.transferred_at) AND NOT EXISTS (SELECT t.id FR...
<filename>Resources/DdlFiles/Tables/Create/Connections.ddl<gh_stars>100-1000 CREATE TABLE IF NOT EXISTS Connections ( Connection_ID INTEGER PRIMARY KEY, IsInternetConnected NVARCHAR (5), IsDODIN_Connected NVARCHAR (5), IsDMZ_Connected NVARCHAR (5), IsVPN_Connected NVARCHAR (5), IsCND_ServiceProv...
<reponame>Stanford-PERTS/neptune /* triton #1653 API gives participant ids and progress, benefits from index */ ALTER TABLE `participant_data` ADD INDEX `project_cohort-modified` (`project_cohort_id`, `modified`);
<reponame>cityofaustin/transportation-vz-data -- -- PostgreSQL database dump -- -- Dumped from database version 10.6 -- Dumped by pg_dump version 10.10 -- Started on 2019-10-15 13:56:55 CDT SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET...
CREATE INDEX CONCURRENTLY idx_network_provider_physical_network_id ON network (provider_physical_network_id); CREATE INDEX CONCURRENTLY idx_provider_binding_host_id_vds_id ON provider_binding_host_id (vds_id);
DROP PROCEDURE IF EXISTS USER_UPDATE; DELIMITER // DROP PROCEDURE IF EXISTS USER_UPDATE; CREATE PROCEDURE USER_UPDATE( userId_ INT, username_ VARCHAR(256), fullName_ VARCHAR(256), hashedPassword_ CHAR(128) ) BEGIN IF username_ IS NOT NULL THEN UPDATE Account SET Username = user...
<reponame>bhagvank/springexamples<filename>springbatchclassifier/batchclassifier/target/classes/data.sql<gh_stars>0 INSERT INTO `employeedb`.`employee` (`id`, `firstName`, `lastName`,`birthdate`) VALUES ('1', 'john', 'smith','10-11-1962 10:10:10'); INSERT INTO `employeedb`.`employee` (`id`, `firstName`, `lastName`,`bir...
<filename>src/resources/database.sql<gh_stars>1-10 /* SQLyog Ultimate v11.24 (32 bit) MySQL - 5.5.30-log : Database - elves_supervisor ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_...
alter table "public"."awards" drop constraint "awards_funder_id_fkey"
-- start query 1 in stream 0 using template query78.tpl 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 web_sales left join web_returns on wr_order_number=ws_order_num...
<gh_stars>0 select * from reparo;
<gh_stars>10-100 ---------------------------- -- Copyright (C) 2021 CARTO ---------------------------- CREATE OR REPLACE FUNCTION @@RS_PREFIX@@carto.QUADINT_FROMQUADKEY (quadkey VARCHAR) RETURNS BIGINT STABLE AS $$ from @@RS_PREFIX@@quadkeyLib import quadint_from_quadkey return quadint_from_quadkey(quadkey) $$...
<filename>ContentPlatformsTriangle/CJDevblog.sql -- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 11, 2014 at 04:18 AM -- Server version: 5.5.37-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone...
create table MEMBERS ( MEMBER_ID NUMBER default "FLORESE"."ISEQ$$_382856".nextval generated as identity constraint MEMBER_ID_PK primary key, USERNAME VARCHAR2(50) not null constraint MEMBERS_UK1 unique, MEMBER_PASSWORD VARCHAR2(50) not null, ...
<filename>example-test.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : lun. 04 jan. 2021 à 23:18 -- Version du serveur : 8.0.21 -- Version de PHP : 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!401...
<filename>db/project.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 18, 2020 at 06:51 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_...
USE [App4Learn] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- Comments here are associated with the test. -- For test case examples, see: http://tsqlt.org/user-guide/tsqlt-tutorial/ ALTER PROCEDURE [InsertNewDemonstrationStep].[test CheckExceptionIsThrownIfInvalidTypePassedIn] AS BEGIN SET NOCOUNT ON; ...
<filename>src/test/resources/test-initialize_data.sql DELETE FROM `LIBRARY`; INSERT INTO `LIBRARY` VALUES ('1081','0,1,2,4,5,6','국회도서관','영등포구','enable','국립도서관 ','http://www.nanet.go.kr/'),('1381','0,1,2,3,4,5,6','국립중앙도서관','서초구','enable','국립도서관 ','http://www.nl.go.kr/'),('1751','0,1,4,6','강남도서관','강남구','enable',NULL,'htt...
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT BEGIN SET N = N-1; RETURN ( SELECT DISTINCT Salary FROM EMPLOYEE ORDER BY Salary Desc LIMIT 1 OFFSET N ); END
create table if not exists LogEntry ( Id INTEGER constraint LogEntry_pk primary key autoincrement, client_time datetime, level varchar(10), msg text, user text, room text, server_time datetime, seq_number bigint, text text ); create unique index if not exists LogEntry_Id_uin...
<reponame>anbya/contohUploadKeGit<gh_stars>0 INSERT INTO pos_itemtemp VALUES("IATT190002477","193009","191001","192001","40000","1","40000","20000","20000","1","1","1","IAT0709190910","NHO2018000007","PAID","cabe pisah","193009"), ("IATT190002477","193020","191001","192002","40000","1","40000","20000","20000","1","1","...
-- Script that lists the number of records with the same score in the table second_table of the database hbtn_0c_0 in a MySQL server. -- Select Group By SELECT score AS score, Count(*) AS number FROM second_table GROUP BY score ORDER BY score DESC;
<filename>db/schema.sql DROP DATABASE if exists blog_db; CREATE DATABASE blog_db;
<gh_stars>1000+ SELECT * FROM (SELECT w_warehouse_name, i_item_id, sum(CASE WHEN (cast(d_date AS date) < CAST ('2000-03-11' AS date)) THEN inv_quantity_on_hand ELSE 0 END) AS inv_before, sum(CASE WHEN (cast(d_date AS dat...
<gh_stars>10-100 INSERT INTO egeis_deptdesig (id,designation,department,outsourcedposts,sanctionedposts,version,createddate,lastmodifieddate,createdby,lastmodifiedby) VALUES(nextval('SEQ_egeis_deptdesig'),(select id from eg_designation where name='Section manager'),(select id from eg_department where name='Revenue'), 0...
-------------------------------------------------------- -- DDL for Table CUSTOMER -------------------------------------------------------- CREATE TABLE "WWS"."CUSTOMER" ( "CUSTOMER_ID" NUMBER, "LOCAL_CUSTOMER_CODE" VARCHAR2(50 CHAR), "SOURCE_TERRITORY_CODE" VARCHAR2(2 CHAR), "TERRITORY_ID" NUMBER, "A...
<reponame>Shuttl-Tech/antlr_psql -- file:timestamptz.sql ln:408 expect:true SELECT '2011-03-26 22:00:00 UTC'::timestamptz
<reponame>Korn1699/bobsql bulk insert tpch_workload_faster..NATION from '/var/opt/mssql/tpch_workload_faster/nation.tbl' with (FieldTerminator = '|', RowTerminator ='|\n',tablock)
<filename>packages/sess.sql CREATE OR REPLACE PACKAGE BODY sess AS -- log_id when page request started in APEX apex_log_id logs.log_id%TYPE; FUNCTION get_apex_log_id RETURN logs.log_id%TYPE AS BEGIN RETURN apex_log_id; END; FUNCTION get_app_id RETURN sessions.a...
-- original: boundary1.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test SELECT a FROM t1 WHERE rowid <= -8388608 ORDER BY a ;SELECT a FROM t1 WHERE rowid <= -8388608 ORDER BY a DESC ;SELECT a FROM t1 WHERE rowid <= -8388608 ORDER BY rowid ;SELECT a FROM t1 WHERE rowid <= -8388608 ORDER BY rowid DESC...
-- RedefineTables PRAGMA foreign_keys=OFF; CREATE TABLE "new_Post" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "published" BOOLEAN NOT NULL DEFAULT false, "title" TEXT NOT NULL, "authorId" INTEGER, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL, ...
<filename>schema/generate/56-schema_update_58.sql<gh_stars>100-1000 BEGIN; ALTER TABLE "augur_data"."contributors" ADD CONSTRAINT "GH-UNIQUE-A" UNIQUE ("cntrb_login") DEFERRABLE INITIALLY DEFERRED, ADD CONSTRAINT "GH-UNIQUE-B" UNIQUE ("gh_user_id") DEFERRABLE INITIALLY DEFERRED, ADD CONSTRAINT "GH-UNIQUE-C" UN...
<gh_stars>0 with all_values as ( select status as value_field, count(*) as n_records from "sqlsampledatastack"."dbo"."stg_orders" group by status ) select * from all_values where value_field not in ( 'placed','shipped','completed','return_pending','returned' )
select * from `PROJECT.idc_CURRENT_VERSION.nlst_canc`
<filename>database/world/world_ai_init_brains.sql<gh_stars>0 create table ai_init_brains ( MonsterId int not null primary key, SpellId int not null, Level tinyint not null ) engine = MyISAM charset = utf8;
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50547 Source Host : localhost:3306 Source Database : mc Target Server Type : MYSQL Target Server Version : 50547 File Encoding : 65001 Date: 2018-07-03 16:40:38 */ SET FOREIGN_KEY_CHECKS=0; -- ------...
<gh_stars>0 insert into city(name,fk_country) values('Aparecida do Rio Doce (GO)',1); insert into city(name,fk_country) values('Aparecida do Rio Negro (TO)',1); insert into city(name,fk_country) values('Aparecida do Taboado (MS)',1); insert into city(name,fk_country) values('Aperibé (RJ)',1); insert into city(name,fk_c...
<reponame>TANGKUO/commonUtils -- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.7.11-enterprise-commercial-advanced-log - MySQL Enterprise Server - Advanced Edition (Commercial) -- 服务器操作系统: Win64 -- HeidiSQL...
-- -- Tigase Jabber/XMPP Server -- Copyright (C) 2004-2012 "<NAME>" <<EMAIL>> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by -- the Free Software Foundation, either version 3 of the License. -- -- This progr...
<gh_stars>1-10 CREATE TABLE [Entity].[EventAppointment] ( [EventAppointmentId] INT IDENTITY (1, 1) CONSTRAINT [DF_EventAppointment_Id] NOT NULL, [EventAppointmentKey] UNIQUEIDENTIFIER CONSTRAINT [DF_EventAppointment_Key] DEFAULT(NewId()) NOT NULL, [EventKey] UNIQUEIDENTIFIER CONSTRAINT [DF_EventAppointm...
library TxPVLS version '0.0.1' using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' called FHIRHelpers codesystem "SNOMEDCT:2017-09": 'http://snomed.info/sct' version 'http://snomed.info/sct/731000124108/version/201709' code "Human immunodeficiency virus viral load (procedure)": '315124004' from "SNOMEDCT...
<filename>hibernate-release-5.3.7.Final/project/documentation/src/main/asciidoc/userguide/chapters/envers/extras/envers-tracking-properties-changes-queries-hasChanged-and-hasNotChanged-example.sql<gh_stars>1-10 select c.id as id1_3_0_, c.REV as REV2_3_0_, defaultrev1_.REV as REV1_4_1_, c.REVTYPE as REVT...
CREATE TABLE `empty` ( `c1` INT, `c2` String, `c3` Decimal(15, 2) NOT NULL ) DISTRIBUTED BY HASH(`c1`) BUCKETS 1 PROPERTIES("replication_num" = "1");
-- Tags: distributed -- NOTE: database = currentDatabase() is not mandatory DROP TABLE IF EXISTS table1; DROP TABLE IF EXISTS table2; CREATE TABLE table1 AS system.columns ENGINE = Distributed('test_shard_localhost', system, columns); CREATE TABLE table2 AS system.tables ENGINE = Distributed('test_shard_localhost', ...
<filename>dbicdh/SQLite/upgrade/68-69/001-auto.sql -- Convert schema '/home/marco/amw/AmuseWikiFarm/dbicdh/_source/deploy/68/001-auto.yml' to '/home/marco/amw/AmuseWikiFarm/dbicdh/_source/deploy/69/001-auto.yml':; ; BEGIN; ; ALTER TABLE custom_formats ADD COLUMN bb_linespacing integer NOT NULL DEFAULT 0; ; COMMIT; ...
<reponame>Iskandarcoder/consullocbeta<filename>ngraj_relatives_abroad.sql -- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Апр 12 2019 г., 16:54 -- Версия сервера: 5.6.37 -- Версия PHP: 7.0.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0...
-- clean up node table where vlan = 0 and vlan = <another number> -- -- DELETE n1.* -- FROM node n1 INNER JOIN -- (SELECT mac, switch, port from node -- GROUP BY mac, switch, port -- HAVING count(*) > 1) n2 -- ON n1.mac = n2.mac -- AND n1.switch = n2.switch -- AND n1.port = n2.port --...
DROP SCHEMA bicoredata_001 CASCADE; CREATE SCHEMA bicoredata_001; SET CURRENT_SCHEMA = bicoredata_001; --FUNC_001 CREATE FUNCTION RmvDupstrWithSep(text, text, text) RETURNS text AS 'com.huawei.udf.RmvDupstrWithSep.evaluate' LANGUAGE java; SELECT RmvDupstrWithSep('AS,de,frd,s,de',',','&'); --FUNC_002 CREATE FUNCTIO...
-------------------------------------------------------- -- DDL for Table SDINF_EDIT -------------------------------------------------------- CREATE TABLE "GROUNDFISH"."SDINF_EDIT" ( "DATASOURCE" VARCHAR2(3 BYTE), "MISSION" VARCHAR2(15 BYTE), "SETNO" NUMBER(3,0), "SDATE" DATE, "STIME" NUMBER(4,0), "SL...
<reponame>blazeriaz/softwarebilling<filename>db/targetusmle_dev_22Nov17.sql -- phpMyAdmin SQL Dump -- version 4.1.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 22, 2017 at 05:18 AM -- Server version: 5.1.73 -- PHP Version: 5.5.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+...
CREATE TABLE accounts ( id serial PRIMARY KEY, username VARCHAR ( 50 ) UNIQUE NOT NULL, password VARCHAR ( 50 ) NOT NULL, email VARCHAR ( 255 ) UNIQUE NOT NULL, created_on TIMESTAMP NOT NULL, last_login TIMESTAMP ); ALTER TABLE order_info ADD COLUMN address varchar(30);
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 06 Bulan Mei 2020 pada 14.25 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.2.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 28, 2020 at 09:19 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 25-05-2018 a las 20:19:52 -- Versión del servidor: 10.1.31-MariaDB -- Versión de PHP: 7.0.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
SET DEFINE OFF; ALTER TABLE AFW_36_LIEN_OPERT_FILTR ADD ( CONSTRAINT AFW_36_LIEN_OPERT_FILTR_PK PRIMARY KEY (SEQNC) ENABLE VALIDATE) /
<gh_stars>1-10 INSERT INTO `ORDER` VALUES ( 1, 1, 1, 1, 1, 4, 2792, 1, NOW()), ( 2, 2, 2, 2, 2, 1, 588, 1, NOW()), ( 3, 3, 3, 3, 3, 6, 2202, 1, NOW()), ( 4, 4, 4, 4, 4, 4, 3612, 1, NOW()), ( 5, 5, 5, 5, 5, 5, 3080, 1, NOW()), ( 6, 6, 6, 6, 6, 3, 315, 1, NOW()), ( 7, 7, 7, 7, 7, 5, 3760, 1, ...
DROP TABLE IF EXISTS `XXX_flexint_flexinttabelle`; ##b_dump## DROP TABLE IF EXISTS `XXX_papoo_flexint_texte_lang`; ##b_dump##
<reponame>sgruda/multiStore GRANT ALL PRIVILEGES ON DATABASE multistore TO postgres; --------------------------------------------------------------------------------------------------- create table access_level ( id bigint not null constraint access_level_pkey primary key, ...
<gh_stars>1-10 DECLARE @DataTypeDefinitionId INT SET @DataTypeDefinitionId = (SELECT DefinitionId from uCommerce_Definition where [Guid] = '28877FD4-A790-47A5-9D85-8A08BB8C46FC')
<reponame>WildStyleiaw/TakeHomeTest<filename>api/db/migrations/20211223214335_initial/migration.sql -- CreateTable CREATE TABLE "Feedback" ( "id" TEXT NOT NULL PRIMARY KEY, "text" TEXT NOT NULL, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP );
<reponame>dram/metasfresh -- 2018-11-13T06:02:52.560 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET InternalName='RV_M_Material_Tracking_HU_Details',Updated=TO_TIMESTAMP('2018-11-13 06:02:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540702 ; -- 2018-11-13T06:04:39.065...
-- 11.07.2016 09:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-07-11 09:16:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9379 ; -- 11.07.2016 09:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configur...
<reponame>ytyaru/Sqlite3.Syntax.Index.Create.Drop.20190829113001 create table T(A int); insert into T values(0); insert into T values(0); create unique index idx_T_A on T(A); .indexes
-- MySQL Script generated by MySQL Workbench -- Tue Apr 9 13:45:40 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='TR...
CREATE TABLE users ( id SERIAL PRIMARY KEY NOT NULL, create_date TIMESTAMP DEFAULT timezone('UTC'::text, now()) NOT NULL, facebook VARCHAR(255) DEFAULT NULL::character varying, google_plus VARCHAR(255) DEFAULT NULL::character varying, email VARCHAR(100) NOT NULL, name VARCHAR(100), last_name...
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : csci321 Source Server Version : 50617 Source Host : 127.0.0.1:3306 Source Database : conforg_db Target Server Type : MYSQL Target Server Version : 50617 File Encoding : 65001 Date: 2015-01-25 12:32:35 */ SET...
{% materialization archive, adapter='presto' -%} {{ exceptions.raise_not_implemented( 'archive materialization not implemented for '+adapter.type()) }} {% endmaterialization %}
-- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64) -- -- Host: localhost Database: ht -- ------------------------------------------------------ -- Server version 8.0.13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
<gh_stars>1-10 SELECT * FROM NGSTAR.tbl_Loci; insert into NGSTAR.tbl_Loci (loci_id, loci_name, sequence_length, is_allele_type_int, is_onishi_type) values (1, 'penA', 1752, 0, 1); insert into NGSTAR.tbl_Loci (loci_id, loci_name, sequence_length, is_allele_type_int, is_onishi_type) values (2, 'mtrR', 708, 1, 0); insert ...
<filename>Tellma.Database.Application/dal/Stored Procedures/dal.Currencies__Delete.sql CREATE PROCEDURE [dal].[Currencies__Delete] @Ids [dbo].[IndexedStringList] READONLY AS BEGIN SET NOCOUNT ON; DELETE FROM [dbo].[Currencies] WHERE Id IN (SELECT Id FROM @Ids); UPDATE [dbo].[Settings] SET [SettingsVersion] = NE...
/* Таблица `locations` имеет связь с таблицей `sections` и `lessons`, её нужно установить после установки таблиц `sections` и `lessons` */ CREATE TABLE `locations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `section__id` int(11) NOT NULL, `lessons__id` int(11) NOT NULL, PRIMARY KEY (`id`), FOREIGN KEY...
-- @testpoint: opengauss关键字than(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists explain_test cascade; create table explain_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor than for select * from explain_test order by 1; close than; end; --关键字带双引号-成功 start transaction; cursor "than" for select * from ex...
<reponame>opengauss-mirror/Yat -- @testpoint: interval分区,ALTER TABLE修改表分区名称,包括预定义分区和扩展分区,查询旧分区信息时合理报错 drop table if exists table8; create table table8( col_1 smallint, col_2 char(30), col_3 int, col_4 date not null, col_5 boolean, col_6 nchar(30), col_7 float ) partition by range (col_4) interval ('1 month') ( partit...
--github.com/imsunnyjha --Language:Oracle select round((abs(max(lat_n)-min(lat_n))+abs(max(long_w)-min(long_w))),4) from station;
INSERT INTO dbo.Disease ([Code], [Name], [Description], [Overview]) VALUES ( N'Q17121234', N'Franceschetti–Klein syndrome', N'', N''), ( N'Q17121503', N'iridocorneal endothelial syndrome', N'', N''), ( N'Q1712213', N'normal pressure hydrocephalus', N'condition in which there is excess cerebrospinal fluid in the ventric...
INSERT INTO bank values('61,RESIDENCY RD, BANGALORE, PIN:560025','City Union Bank', 1); INSERT INTO bank values('4,COMMERCIAL STREET, BANGALORE(CANTT)','The Ratnakar Bank', 2); INSERT INTO bank values('38,I STAGE, INDRA NAGAR','IndusInd Bank', 3); INSERT INTO bank values('34, Ramavilasa Road, Mysore','AXIS Bank', ...
film tablosunda bulunan tüm sütunlardaki verileri replacement cost değeri 12.99 dan büyük eşit ve 16.99 küçük olma koşuluyla sıralayınız ( BETWEEN - AND yapısını kullanınız.) select * from film where replacement_cost BETWEEN 12.99 and 16.99 .actor tablosunda bulunan first_name ve last_name sütunlardaki verileri first...
<reponame>abiyogahendra/recognition-pancasilais /* SQLyog Ultimate v12.5.1 (64 bit) MySQL - 10.4.14-MariaDB : Database - sentiment ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_C...
<reponame>RelationalSchemaTools/6nf-catalog CREATE OR REPLACE FUNCTION meta.create_insert_trigger_functions() RETURNS VOID AS $BODY$ BEGIN CREATE TEMP TABLE insert_agg ON COMMIT DROP AS SELECT c.schema_name , c.table_name , c.entity_name , c.attribute_name , CONCAT(E'\t', 'IN...
/*[[Get SQL Monitor report from dba_hist_reports, supports 12c only. Usage: @@NAME {[sql_id|report_id] [YYYYMMDDHH24MI] [YYYYMMDDHH24MI]} [-f"<filter>"] [-avg] <sql_id> : List the records related to the specific SQL_ID and export SQL Performance Hub -u : Only show the SQL list within current schema -avg ...
USE [VipunenTK_SA] GO Drop table [VipunenTK_DW].[dbo].[sa_4_8_Tutkinnon_suorittaneiden_myohempi_koulutus] Select top 0 * into [VipunenTK_DW].[dbo].[sa_4_8_Tutkinnon_suorittaneiden_myohempi_koulutus] FROM VipunenTK_SA.[dbo].[v_sa_4_8_Tutkinnon_suorittaneiden_myohempi_koulutus] GO
-- file:privileges.sql ln:1011 expect:true SELECT has_table_privilege('regress_user1', 'testns.t2', 'SELECT')
<filename>single_tech_samples/azuresql/src/ddo_samples_azuresql/ddo_samples_azuresql/SalesLT/Tables/ProductCategory.sql CREATE TABLE [SalesLT].[ProductCategory] ( [ProductCategoryID] INT IDENTITY (1, 1) NOT NULL, [ParentProductCategoryID] INT NULL, [Name] ...
# --- !Ups CREATE EXTENSION IF NOT EXISTS pgcrypto;; CREATE EXTENSION IF NOT EXISTS ltree;; CREATE TABLE roles ( role_id serial PRIMARY KEY, role_name text NOT NULL, role_permissions int[] NOT NULL );; CREATE TABLE gov_units ( gov_unit_id serial PRIMARY KEY, gov_unit_name text NOT NULL, gov_...
<filename>CapsData/Create Scripts/Tables/Constraints/CHK_StorageType_NoEmptyStrings.chkconst.sql<gh_stars>0 ALTER TABLE [dbo].[StorageType] ADD CONSTRAINT [CHK_StorageType_NoEmptyStrings] CHECK ([Name]<>'' AND [Description]<>'');
-- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= CREATE PROCEDURE [dbo].[usp_read_database_type] -- Add the parameters for the stored procedure here @DatabaseObject Varchar(200)...
<gh_stars>0 SET allow_experimental_window_view = 1; DROP TABLE IF EXISTS mt; CREATE TABLE mt(a Int32, b Int32, timestamp DateTime) ENGINE=MergeTree ORDER BY tuple(); SELECT '---TUMBLE---'; SELECT '||---WINDOW COLUMN NAME---'; DROP TABLE IF EXISTS wv; DROP TABLE IF EXISTS `.inner.wv`; CREATE WINDOW VIEW wv ENGINE Agg...
<filename>tracemeoff.sql -- 19c -- exec dbms_session.session_trace_enable(binds=>true,waits=>true); exec dbms_session.session_trace_disable; @t