sql
stringlengths
6
1.05M
{{ config({ "schema": "staging" }) }} WITH source AS ( SELECT * FROM {{ source('engineering', 'part_of_product_merge_requests') }} QUALIFY ROW_NUMBER() OVER (PARTITION BY jsontext['plain_diff_path'] ORDER BY ARRAY_SIZE(jsontext['merge_request_diffs']) DESC, uploaded_at DESC) = 1 ),...
-- file:transactions.sql ln:402 expect:true INSERT INTO new_table SELECT invert(0.0)
-- file:plpgsql.sql ln:356 expect:false sname := sname || ''.''
<reponame>weltam/airbyte<filename>airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/mssql/test_nested_streams/final/airbyte_ctes/test_normalization/nested_stream_with_co__lting_into_long_names_ab4.sql USE [test_normalization]; execute('create view _airbyte_test_normalization....
<gh_stars>1-10 -- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. -- -- Tanel Poder's Troubleshooting scripts for Oracle v2.0.1 -- -- Copyright: (c) 2004-2009 http://www.tanelpoder.com -- -- None ...
drop table if exists cd_pipeline_third_party_service;
<reponame>buidler-labs/hedera-mirror-node<filename>hedera-mirror-importer/src/main/resources/db/migration/v1/V1.54.3__hip336_approval_allowance.sql<gh_stars>1-10 -- HIP-336 Approval and Allowance API -- transfers alter table if exists crypto_transfer add column if not exists is_approval boolean null; alter table ...
CREATE PROCEDURE [rpt].[Ifrs_610000] --[610000] Statement of changes in equity @fromDate DATE, @toDate DATE AS BEGIN SET NOCOUNT ON; CREATE TABLE [dbo].#IfrsDisclosureDetails ( [RowConcept] NVARCHAR (255) NOT NULL, [ColumnConcept] NVARCHAR (255) NOT NULL, [Value] DECIMAL ); DECLARE @IfrsDisclosureI...
<gh_stars>10-100 BEGIN; ALTER TABLE batches RENAME COLUMN payload TO manifest; COMMIT;
<filename>Database/freeshow.sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2016-09-23 18:49:22 -- 服务器版本: 10.1.13-MariaDB -- PHP Version: 5.5.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
<reponame>opengauss-mirror/Yat -- @testpoint: 描述:获取月份的值。如果大于12,则取与12的模。等效于extract(field from timestamp)。返回值类型:double precision SELECT date_part('month', interval '2 years 3 months') from sys_dummy;
USE LO54; INSERT INTO location VALUES (1, "Paris", "48.864716", "2.349014"), (2, "Milan", "45.464211", "9.191383"), (3, "Berlin", "52.520008", "13.404954"), (4, "Seattle", "47.608013", "-122.335167"); INSERT INTO course VALUES (1, "Anthropologie des canibales"), (2, "C++ niveau 1"), (3, "C++ niveau 2"), (4, "C++ nive...
<reponame>Muhamad-Rizaludin/MiniProject-SIDailyReport-Laravel -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Sep 2021 pada 09.45 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time...
/* programmers : 여러 기준으로 정렬하기 solved by JY DATE : 2021.01.06 */ SELECT ANIMAL_ID, NAME, DATETIME FROM ANIMAL_INS ORDER BY NAME, DATETIME DESC;
<gh_stars>0 -- create database dotnet create table users( id_user int auto_increment, username varchar(50) not null, name varchar(50) not null, lastname varchar(50) not null, correo varchar(100) not null, pass varchar(50) not null, fecha_registro datetime default now(), fecha_actualizacion...
CREATE PROCEDURE [Union].RestoreData AS DELETE FROM [Union].DS_1 DELETE FROM [Union].DS_2A DELETE FROM [Union].DS_2B INSERT INTO [Union].DS_1 VALUES (2012, 'B', 'Total', 'Total', 5) INSERT INTO [Union].DS_1 VALUES (2012, 'G', 'Total', 'Total', 2) INSERT INTO [Union].DS_1 VALUES (2012, 'F', 'Total', 'Total', 3) ...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 20-10-2020 a las 01:04:46 -- Versión del servidor: 10.4.10-MariaDB -- Versión de PHP: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
select now(), now(), clock_timestamp(), clock_timestamp(); begin; select now(); select now(); commit; select now();
ALTER TABLE dbo.FactSalesQuota ADD CONSTRAINT [PK_dbo.FactSalesQuota_SalesQuotaKey] PRIMARY KEY CLUSTERED ([SalesQuotaKey] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
<filename>queries/stackoverflow/q11/7f0c3f1ee79eae58ff387b127ed34488633a5ac3.sql SELECT COUNT(*) FROM tag as t, site as s, question as q, tag_question as tq WHERE t.site_id = s.site_id AND q.site_id = s.site_id AND tq.site_id = s.site_id AND tq.question_id = q.id AND tq.tag_id = t.id AND (s.site_name in ('stackoverflow...
/* Navicat MySQL Data Transfer Source Server : MySQL Source Server Version : 50617 Source Host : localhost:3306 Source Database : dbfire Target Server Type : MYSQL Target Server Version : 50617 File Encoding : 65001 Date: 2017-04-22 15:29:07 */ SET FOREIGN_KEY_CHECK...
<reponame>PierreLetter/sqlwatch CREATE PROCEDURE [dbo].[usp_sqlwatch_config_add_default_checks] as /* ------------------------------------------------------------------------------------------------------------------- usp_sqlwatch_config_add_default_checks This procedure will add pre-defined checks which include: ...
-- Lisk stats -- genesis block time is 2016-05-24 17:00:00 CREATE MATERIALIZED VIEW lisk_stats AS ( WITH tx_stats AS (SELECT DATE_TRUNC('day', TIMESTAMP '2016-05-24 17:00:00' + tx."timestamp" * INTERVAL '1 second') "date", COUNT(*) "cnt", SUM(tx."amount") :: NUMERIC * 0.00000001 "value", S...
<reponame>aliyun/alibabacloud-AliRtcAudioLiveRoom-Demo<filename>server/sql/appserver_create_table.sql  CREATE TABLE `user` ( `channel_id` varchar(50) DEFAULT NULL, `user_id` varchar(50) DEFAULT NULL, `user_name` varchar(50) DEFAULT NULL, `seat_index` int(11) DEFAULT NULL, UNIQUE KEY `unique_user_id` (`user_i...
<reponame>amalmtahri/Brief10_Cr-ation-d-un-forum-simple-avec-Laravel -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : ven. 09 juil. 2021 à 16:16 -- Version du serveur : 10.4.17-MariaDB -- Version de PHP : 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START ...
-- 2017-05-15T18:52:56.906 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Tab (AD_Client_ID,AD_Column_ID,AD_Org_ID,AD_Tab_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,DisplayLogic,EntityType,HasTree,ImportFields,IsActive,IsAdvancedTab,IsCheckParentsChanged,IsGenericZoomTarget,IsGridM...
{% set event_types = dbt_utils.get_column_values(table=ref('stg_events'), column='event_type') %} with event_types_per_session as( select * from {{ ref('stg_events')}} ) select distinct(event_type) as unique_event_types, count(distinct (session_id)) as unique_sessions {% for event_type in event_types %} ,sum...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- 主機: mysql -- 產生時間: 2021 年 10 月 11 日 02:28 -- 伺服器版本: 8.0.25 -- PHP 版本: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET...
<gh_stars>0 # --- Sample data for users schema # --- !Ups # --- !Downs
{%- macro sales_qualified_source_cleaning(column_1) -%} IFF({{column_1}} = 'BDR Generated', 'SDR Generated', {{column_1}}) {%- endmacro -%}
<filename>api/prisma/migrations/20220120011957_audit_update/migration.sql /* Warnings: - You are about to drop the column `before` on the `audit` table. All the data in the column will be lost. - You are about to drop the column `diff` on the `audit` table. All the data in the column will be lost. */ -- AlterTa...
<filename>doc/tt_java_open-pg.sql -- ************************************************************ -- 根据TeamTalk开发的JAVA(spring cloud)版服务器用/Postgresql版 -- Version 2017-06-02 -- -- Database: teamtalk -- Generation Time: 2017-06-01 16:45:30 -- ************************************************************ -- -- PostgreSQL da...
BEGIN; DROP INDEX pins_batch; COMMIT;
CREATE ROLE ts_db_sonar_user WITH LOGIN CREATEDB CREATEROLE PASSWORD '<PASSWORD>' ; CREATE DATABASE ts_db_sonar ; GRANT ALL PRIVILEGES ON DATABASE ts_db_sonar TO ts_db_sonar_user ;
DROP TABLE comments cascade; DROP TABLE entries cascade; DROP TABLE users cascade; CREATE TABLE entries ( id serial NOT NULL, title text NOT NULL, tags text, content text NOT NULL, content_html text NOT NULL, postdate timestamp with time zone NOT NULL DEFAULT now(), state smallint NOT ...
SELECT t_id, identifikator, geometrie, bemerkungen, bemerkungen_lang, typ, kantonaletypbezeichnung, kantonaletypbezeichnung_lang, istaltrechtlich, astatus FROM afu_gewaesserschutz.gwszonen_gwszone;
/* Warnings: - You are about to drop the `profile` table. If the table is not empty, all the data it contains will be lost. */ -- DropTable DROP TABLE "profile"; -- CreateTable CREATE TABLE "Profile" ( "id" SERIAL NOT NULL, "name" TEXT NOT NULL, "userId" INTEGER NOT NULL, CONSTRAINT "Profile_pke...
CREATE TABLESPACE TS_P3 DATAFILE 'D:\Docs\Fatec\Programacao_de_Banco_de_Dados\Pratica3\TS_P3.dbf' SIZE 1M AUTOEXTEND ON; CREATE USER USER_TS_P3 IDENTIFIED BY aluno DEFAULT TABLESPACE TS_P3 TEMPORARY TABLESPACE TEMP QUOTA UNLIMITED ON TS_P3; GRANT DBA TO USER_TS_P3 WITH ADMIN OPTION;
<reponame>pelias-mirror/pelias-placeholder<filename>query/count_tokens.sql SELECT COUNT(*) AS cnt FROM fulltext AS ft WHERE ft.fulltext MATCH $token_quoted
<filename>queries/project_insert.sql INSERT INTO project ( name, slug, description, tags, image, repo, demo, is_hidden, added_on, edited_on ) VALUES ( :name, :slug, :description, :tags, :image, :repo, :demo, :is_hidden, :added_on, :edited_o...
-- DDL script for base table: -- Field - Immunology -- Seed Year - 1993 SET search_path = theta_plus; -- -- Get all immunology articles published in the year 1993 DROP TABLE IF EXISTS theta_plus.imm1993; CREATE TABLE theta_plus.imm1993 TABLESPACE theta_plus_tbs AS SELECT sp.scp FROM public.scopus_publications sp INN...
alter table egbpa_application_fee drop column application ;
-- Your SQL goes here CREATE TABLE mod_log ( id SERIAL PRIMARY KEY, case_id INTEGER NOT NULL, guild_id BIGINT NOT NULL, executor_id BIGINT, user_id BIGINT NOT NULL, user_tag TEXT NOT NULL, action TEXT NOT NULL, reason TEXT, action_time TIMESTAMP NOT NULL, msg_id BIGINT, pendi...
<reponame>cpicpgx/cpic-data COPY drug (drugid, name, pharmgkbid, rxnormid, drugbankid, atcid, version) FROM stdin; RxNorm:190521 abacavir PA448004 190521 DB01048 {J05AF06,J05AR02,J05AR13,J05AR04} 1 ATC:C09AA Ace Inhibitors, Plain PA164712308 {C09AA} 1 RxNorm:154 acenocoumarol PA452632 154 DB01418 {B01AA07} 1 RxNorm:4...
<reponame>wpf244/5_06_lemeng<gh_stars>0 # Host: localhost (Version: 5.5.53) # Date: 2019-05-09 10:44:02 # Generator: MySQL-Front 5.3 (Build 4.234) /*!40101 SET NAMES utf8 */; # # Structure for table "ddsc_admin" # DROP TABLE IF EXISTS `ddsc_admin`; CREATE TABLE `ddsc_admin` ( `id` int(11) NOT NULL AUTO_INCREMEN...
<filename>resources/db/flyway/master/R__functions.sql<gh_stars>0 create or replace function append_gis_change_log() returns trigger as $$ declare next_id bigint; begin lock table ${masterSchema}.gis_change_log in share row exclusive mode; select coalesce(max(id), 0) + 1 into next_id from ${masterSc...
<gh_stars>0 ALTER TABLE [tpdm].[CandidateEducatorPreparationProgramAssociation] ADD [CreatedByOwnershipTokenId] SMALLINT NULL; ALTER TABLE [tpdm].[CandidateRelationshipToStaffAssociation] ADD [CreatedByOwnershipTokenId] SMALLINT NULL; ALTER TABLE [tpdm].[FieldworkExperienceSectionAssociation] ADD [CreatedByOwnershipT...
<reponame>Zenika/TIL<filename>server/migrations/default/1652270340636_delete_fk_public_post_tag_post_tag_post_id_fkey/up.sql alter table "public"."post_tag" drop constraint "post_tag_post_id_fkey";
WITH s AS ( SELECT "x" AS col1, "y" AS col2, "z" AS col3, ) SELECT CONCAT(col1, ":::", col2) AS _unique_key, col1, col2, col3, FROM s
-- +migrate Up CREATE TABLE memberships ( id VARCHAR(32) NOT NULL PRIMARY KEY, person_id VARCHAR(32) NOT NULL, group_type VARCHAR(32) NOT NULL, group_id VARCHAR(32) NOT NULL, UNIQUE (person_id,group_type,group_id) ); -- +migrate Down DROP TABLE memberships;
CREATE UNIQUE INDEX "PKEY_CTAGENT_RELATIONSHIP" ON "CTAGENT_RELATIONSHIP" ("AGENT_RELATIONSHIP")
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 30, 2015 at 08:38 AM -- Server version: 5.1.41 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
/* This script creates the database university */ CREATE DATABASE IF NOT EXISTS university; USE university;
CREATE DATABASE CCM USE CCM GO CREATE TABLE PRODUCT ( ID nvarchar(50), PRODUCT_NAME ntext, PRODUCT_TYPE nvarchar(50), BRAND ntext, MANUFRACTURING_DATE datetime, QUARANTY int, REMAINING int, PRICE int, PRIMARY KEY(ID) ) CREATE TABLE PRODUCT_TYPE ( ID nvarchar(50), NAME ntext, PRIMARY KEY (ID) ) CREATE TAB...
CREATE DATABASE IF NOT EXISTS laravel_imagen; DROP TABLE IF EXISTS laravel_imagen.users; CREATE TABLE laravel_imagen.users( id BIGINT(20) PRIMARY KEY AUTO_INCREMENT, names varchar(50), lastnames varchar(50), email varchar(100) UNIQUE, profile_picture BLOB, gender ENUM ('Male', 'Female'), bir...
-- South to North (High Barnet branch); --In the passenger cabin was PM2.5 DIana + AE51-S5-836-1309 --In the driver cabin was PM2.5 Andrew + AE51-S4-521-1204 + PNum -- Waited on platform at Morden INSERT INTO tube_diary VALUES('Northern', 'Morden', '2014-12-16 08:07:00', '2014-12-16 08:09:00', 'platform', 'floor', 1);...
<reponame>aporlov/rpc /* Тесты */ -- ----------------------------------------------------------------------------- SELECT poma.test('index'); -- BOT /* Тест index */ SELECT * FROM rpc.index(:'PKG'); -- EOT -- ----------------------------------------------------------------------------- SELECT poma.test('func_ar...
USE [Curso]; GO CREATE TABLE [Aluno]( [Id] INT NOT NULL, [Nome] NVARCHAR NOT NULL, [Nascimento] DATETIME NULL, [Ativo] BIT ); GO -- Se tiver valores nulos na coluna é necessário dar um valor default UPDATE TABLE [Aluno] SET [Ativo] = 0 WHERE [Ativo] IS NULL; GO ALTER TABLE [Aluno] ALTER CO...
SELECT CASE WHEN school_name < 'n' THEN 'A-M' WHEN school_name >= 'n' THEN 'N-Z' ELSE NULL END AS school_name_group, COUNT(1) AS players FROM benn.college_football_players GROUP BY 1;
SET DEFINE OFF; CREATE TABLE AFW_20_DEPLM ( SEQNC NUMBER(10), NOM VARCHAR2(60 BYTE), DATE_CREAT DATE, UTILS_CREAT VARCHAR2(123 BYTE), DATE_MODFC DATE, UTILS_MODFC VARCHAR2(123 BYTE), REF_MODL NUMBER(10), REF_MODL_PARMT NUMBER(10), REF_PRODT_LANG NUMBER(...
create table formats ( id serial primary key, name varchar(100) not null, created timestamp default current_timestamp ); create table format_to_sets ( id serial primary key, format_id integer references formats(id), set_id integer references sets (id), created timestamp default current_time...
<gh_stars>1-10 SELECT * FROM flatfile_tab_pos2\")\n
DROP TABLE IF EXISTS vis.map_attributes{suffix}; CREATE TABLE vis.map_attributes{suffix} AS( WITH array_table AS( SELECT trip_id, ARRAY{metric_arr} AS metric_arr, ARRAY{value_arr} AS value_arr FROM results.trips{suffix} ORDER BY trip_id ), long_res AS( SELECT trip_id, ...
-- Revert seattleflu/schema:shipping/views from pg begin; drop view shipping.incidence_model_observation_v1; commit;
INSERT INTO `addon_account` (name, label, shared) VALUES ('society_admin','Admin',1) ; INSERT INTO `datastore` (name, label, shared) VALUES ('society_admin','Admin',1) ; INSERT INTO `addon_inventory` (name, label, shared) VALUES ('society_admin', 'Admin', 1) ; INSERT INTO `jobs` (`name`, `label`, `whitelisted`...
<gh_stars>1-10 {{.TokenGenerator}} SELECT DISTINCT FL.RUN_NUM as RUN_NUM, FL.LUMI_SECTION_NUM as LUMI_SECTION_NUM, FL.EVENT_COUNT as EVENT_COUNT {{if .Lfn}} {{/* Lfn block */}} {{if .LfnList}} {{/* LfnList block */}} {{if .ValidFileOnly}} {{/* validFileOnly block */}} , F.LOGICAL_FILE_NAME as LOGICAL_FILE_NAME FRO...
create table IF NOT EXISTS user ( user_id INTEGER not null primary key autoincrement, username TEXT, password TEXT, name TEXT, profilePic TEXT, accessLevel INTEGER )
# # Table structure for table 'tx_testextension_domain_model_main' # CREATE TABLE tx_testextension_domain_model_main ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, name varchar(255) DEFAULT '' NOT NULL, identifier varchar(255) DEFAULT '' NOT NULL, description text NOT NULL, my_date dat...
<gh_stars>0 INSERT INTO testdb.person (id, name, age, address, mobile, height, weight, marital_status) VALUES ('60ade394-10d7-477d-8aa6-384f59a53ddg', 'PZH', 18, 'HOME HOME', '15215003060', 183, 55, 1); INSERT INTO testdb.person (id, name, age, address, mobile, height, weight, marital_status) VALUES ('98035b0a-ec07-44b...
{%- macro type_string() -%} {{ return(adapter.dispatch('type_string', 'thesis_dbt')()) }} {%- endmacro -%} {%- macro default__type_string() -%} string {%- endmacro -%} {%- macro redshift__type_string() -%} varchar {%- endmacro -%} {%- macro postgres__type_string() -%} varchar {%- endmacro -%} {%- macr...
INSERT INTO JAVAMAIL_CONFIG(ID,USERNAME,PASSWORD,RECEIVE_TYPE,RECEIVE_HOST,RECEIVE_PORT,RECEIVE_SECURE,SEND_TYPE,SEND_HOST,SEND_PORT,SEND_SECURE,PRIORITY,USER_ID) VALUES(1,'<EMAIL>','~lemon2shinetechchina','pop3','mail.shinetechchina.com','995','ssl-all','smtp','mail.shinetechchina.com','465','ssl-all',1,1);
-- POCOR-4040 -- system_patches INSERT INTO `system_patches` (`issue`, `created`) VALUES ('POCOR-4040', NOW()); ALTER TABLE `institution_rooms` CHANGE COLUMN `room_type_id` `room_type_id` INT(11) NOT NULL COMMENT 'links to room_types.id', CHANGE COLUMN `room_status_id` `room_status_id` INT(11) NOT NULL COMMENT 'links ...
ALTER TABLE DOWNLOAD ADD SESSION_ID varchar(255); UPDATE DOWNLOAD SET SESSION_ID = '-'; ALTER TABLE DOWNLOAD MODIFY (SESSION_ID NOT NULL); ALTER TABLE DOWNLOAD MODIFY (PREPARED_ID NULL);
<reponame>figment-networks/mina-archive-proxy<filename>queries/public_keys.sql<gh_stars>1-10 SELECT json_agg(value) AS public_keys FROM public_keys
SELECT * FROM USER_BADGES WHERE NO = ? ;
CREATE TABLE `mst_brandtype` ( `brandtype_id` varchar(10) NOT NULL , `brandtype_name` varchar(60) NOT NULL , `brandtype_descr` varchar(90) NOT NULL , `_createby` varchar(13) NOT NULL , `_createdate` datetime NOT NULL DEFAULT current_timestamp(), `_modifyby` varchar(13) , `_modifydate` datetime , ...
--1、业务模块表 CREATE TABLE `t_router_module` ( `id` int(11) NOT NULL auto_increment, `module_name` varchar(255) NOT NULL, `version` int(11) NOT NULL, `remark` varchar(255) default NULL, `modify_time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `POSTTIME` datetime default NULL, `L...
<gh_stars>0 -- @testpoint: with:psort不支持FILLFACTOR DROP TABLE if EXISTS test_index_table_093 CASCADE; create table test_index_table_093( c_float1 float ) WITH (ORIENTATION = column) ; --建psort索引:fillfactor 100 drop index if exists index_093_01; create index index_093_01 on test_index_table_093(c_float1) with (fillfac...
<filename>oldqueries/SQLQuery2.sql SELECT * from Owner INNER JOIN DogOwner ON Owner.ownerID = DogOwner.ownerID SELECT * from Dogg SELECT * from DogOwner
<gh_stars>0 clear screen; set serveroutput on; set verify off; declare name DONOR.Dname%TYPE := '&Name'; age DONOR.Dage%TYPE := '&Age'; gender DONOR.Dgender%TYPE := '&Gender'; bloodGrp DONOR.Dbloodgroup%TYPE := '&BloodGroup'; area DONOR.Darea%TYPE := '&Area'; address DONOR.Daddress%TYPE := '&Address'; phonenu...
<reponame>borjaromeojr/CARD-Bank-Qeuing-System<filename>bankqeuing.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Aug 11, 2020 at 11:30 AM -- Server version: 8.0.21 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTIO...
<filename>part-2/schema.sql DROP DATABASE IF EXISTS hotel_db; DROP VIEW IF EXISTS availability; CREATE DATABASE hotel_db; \c hotel_db CREATE TABLE IF NOT EXISTS rooms( id SERIAL PRIMARY KEY, number VARCHAR(2), capacity INTEGER); CREATE TABLE IF NOT EXISTS guests( id SERIAL PRIMARY KEY, name VARCHAR(140), ...
<filename>DatabaseBuilder/Identity/RollBacks/000002-RollBack-AspNetUsers.sql DROP TABLE [dbo].[AspNetUsers];
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 09, 2017 at 06:09 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.5.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
CREATE FUNCTION [dbo].[ufnLastDay] ( @param DATE ) RETURNS DATE AS BEGIN RETURN DATEADD(MM, DATEDIFF(MM, -1, @param), -1) END
<gh_stars>0 CREATE TABLE deck_cards ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, card_id INT NOT NULL, deck_id INT NOT NULL, deck_pos INT, FOREIGN KEY(card_id) REFERENCES cards(id) ON DELETE CASCADE, FOREIGN KEY(deck_id) REFERENCES decks(id) ON DELETE CASCADE );
<gh_stars>1-10 SET DEFINE OFF; ALTER TABLE AFW_13_INSTA_REGN_PILTB ADD ( CONSTRAINT AFW_13_INSTA_REGN_PILTB_CK1 CHECK ( indic_regn_activ = 'O' or indic_regn_activ = 'N' ) ENABLE VALIDATE) /
<gh_stars>1-10 /* * @Author: <NAME> * @Date: 2016-04-14 21:23:07 * @Last Modified by: <NAME> * @Last Modified time: 2016-04-14 21:23:37 */ SELECT salary * months, count(*) FROM Employee e1 WHERE NOT EXISTS (SELECT * FROM Employee e2 WHERE e2.salary * e2.months > e1.salary * e1.months);
<filename>api/migrations/2021-09-29-122905_real_problems_king_pinned/up.sql INSERT INTO problem_statements(id, version, problem_statement) VALUES ('4befd72e-13f9-11ec-4242-c30a7c25a688', 'v1', E'#### King Pinned\n'); INSERT INTO problems(code_name, name, base_point_value, difficulty, max_submissions, s...
CREATE TABLE IF NOT EXISTS HardwareContacts ( HardwareContact_ID INTEGER PRIMARY KEY, Hardware_ID INTEGER NOT NULL, Contact_ID INTEGER NOT NULL, FOREIGN KEY (Hardware_ID) REFERENCES Hardware(Hardware_ID), FOREIGN KEY (Contact_ID) REFERENCES Contacts(Contact_ID) );
<reponame>jdkoren/sqlite-parser -- memdb.test -- -- execsql {SELECT c FROM t1} SELECT c FROM t1
-- file:json.sql ln:118 expect:true SET LOCAL TIME ZONE -8
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/_unknown/61a4f7ef.sql -- file:comments.sql ln:33 expect:true /* Third level of nesting... SELECT 'deepest nest' as n3
--======================================================================== -- Create Inline Table-valued Function template for Azure SQL Database --======================================================================== IF OBJECT_ID (N'<schema_name, sysname, dbo>.<function_name, sysname, EmployeeByID>') IS NOT NULL ...
-- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -- SPDX-License-Identifier: MIT-0 create table sales.listing( listid integer not null distkey, sellerid integer not null, eventid integer not null, dateid smallint not null sortkey, numtickets smallint not null, priceperticket decimal(8,2), ...
<reponame>beingforthebenefit/victr-code-test<filename>framework/database/schema.sql DROP TABLE IF EXISTS `repositories`; CREATE TABLE `repositories` ( `repositoryId` int(10) unsigned NOT NULL, `name` text, `url` text, `createdDate` datetime DEFAULT NULL, `lastUpdated` datetime DEFAULT NULL, `description` te...
<gh_stars>1-10 /* * This script creates the [Charging] schema and the [InvoiceRun] table. * It adds a nullable column [InvoiceRunId] to the [PCS].[MemberUpload] table with a FK to the [InvoiceRun] table. * It adds an index to the [PCS].[MemberUpload] table on the [InvoiceRunId] column. */ GO CREATE SCHEMA [Chargi...
<gh_stars>0 {{ config( materialized = 'table' ,unique_key = 'event_id' ) }} SELECT id AS event_id , event_id AS event_guid , session_id AS session_guid , user_id AS user_guid , ...
<reponame>francisco-nascimento/blocklyifpe drop database wikifpe; create database wikifpe; use wikifpe; create table campus( id_campus int, nome_campus varchar (50), primary key (id_campus) ); create table usuario( id_usu int auto_increment, matricula varchar(15) not null, nome_completo varchar(30) not null, ape...
-- This file and its contents are licensed under the Timescale License. -- Please see the included NOTICE and LICENSE for copyright and licensing information. -- A procedure to migrate data from a normal table to a hypertable or between hypertables. -- For now the source and target tables must have the same columns i...