sql
stringlengths
6
1.05M
<filename>Level_Junior/Part_003_SQL_JDBC/1_Create_Update_Insert/src/main/java/ru/job4j/task1/Create_Tables.sql CREATE TABLE Rules ( id SERIAL, name CHARACTER VARYING(50) NOT NULL, description TEXT NOT NULL, PRIMARY KEY (id) ); CREATE TABLE Roles ( id SERIAL, name CHARACTER VARYING(50) NOT NULL, ...
<gh_stars>1-10 -- Name: InsertIntoDicomEditCompare -- Schema: posda_files -- Columns: [] -- Args: ['edit_command_file_id', 'from_file_digest', 'to_file_digest', 'short_report_file_id', 'long_report_file_id'] -- Tags: ['NotInteractive', 'Backlog', 'Transaction', 'used_in_file_import_into_posda'] -- Description: Lock the...
<reponame>UltimateSoftware/DOI GO IF OBJECT_ID('[DOI].[vwPartitionSchemes]') IS NOT NULL DROP VIEW [DOI].[vwPartitionSchemes]; GO SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO CREATE VIEW [DOI].[vwPartitionSchemes] AS /* select * from DOI.vwPartitionSchemes where partitionfunctionname = 'PfMonthlyUnitTes...
<gh_stars>0 CREATE TABLE IF NOT EXISTS `article_categories` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `alias` varchar(255) NOT NULL, `description` text, `parent` int(11) DEFAULT '0', `published` smallint(6) NOT NULL DEFAULT '0', `access` int(11) NOT NULL DEFAULT '0',...
CREATE TABLE entries ( id BIGSERIAL NOT NULL CONSTRAINT entries_pkey PRIMARY KEY, title text not null, content text, document_vectors tsvector );
WITH cust_non_redhat AS ( SELECT DISTINCT t.customer_id, substring(t.email from '@(.*)$') AS domain FROM PUBLIC.api_user t WHERE substring(t.email FROM '@(.*)$') != 'redhat.com' ), filtered_customers AS ( SELECT c.id, c.account_id, cn...
DROP TABLE `member_mail_labels`;
-- -- Table structure for table `movies` -- CREATE TABLE `movies` ( `title` char(60) NOT NULL, `star_actors` tinytext NOT NULL, `director` char(100) NOT NULL, `genre` char(100) NOT NULL, `age_classification` char(100) NOT NULL, `showing` char(100) NOT NULL, `showing_time` tinytext NOT NULL, `screen` ti...
<reponame>rudnovd/heroes3toolsApi<filename>common/sql/create/heroes_spells_specialty.sql create table heroes_spells_specialty ( id smallint not null, spell_id smallint not null constraint heroes_spells_specialty_spells_id_fk references spells ); create unique index heroes_spells_specialty_i...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 14, 2019 at 10:26 AM -- 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...
create database db_assignment1; use db_assignment1; -- -- (for creating Passengers table) create table Passengers ( PassengerID binary(16) primary key, FirstName varchar(30), LastName varchar(30), MobileNo varchar(8), EmailAddr varchar(45), Availability tinyint(0) default 0 ); -- -- (for creating Drivers ta...
<filename>db/seeds.sql<gh_stars>1-10 USE cheese_db; INSERT INTO cheeses (cheese_name) VALUES ("Gouda"), ("Brie"), ("Cheddar"), ("Marble"), ("Mozzarella"), ("Swiss"); SELECT * FROM cheeses;
SELECT DepositGroup, MagicWandCreator, MIN(DepositCharge) AS [MinDepositCharge] FROM WizzardDeposits GROUP BY DepositGroup, MagicWandCreator ORDER BY MagicWandCreator, DepositGroup
alter table egbpa_documentscrutiny alter column subdivisionnumber type character varying(128); alter table egbpa_documentscrutiny alter column resurveynumber type character varying(128); --------------------Tower Construction---------------------- insert into EGBPA_MSTR_CHECKLIST(id,checklisttype,servicetype,version,c...
<filename>conf/mysql/aac-init.sql CREATE DATABASE aac; CREATE USER 'ac'@'%' IDENTIFIED BY 'ac'; GRANT ALL PRIVILEGES ON aac.* TO 'ac'@'%'; FLUSH PRIVILEGES;
-- Revert ovid:data/database-design-standards to sqlite BEGIN; DELETE FROM articles WHERE slug = 'database-design-standards' AND article_type_id = (SELECT article_type_id FROM article_types WHERE type = 'article'); COMMIT;
<reponame>aliostad/deep-learning-lang-detection -------------------------------------------------------- -- DDL for Table ARTICLE -------------------------------------------------------- CREATE TABLE "BROCARCL"."ARTICLE" ( "IDARTICLE" NUMBER(*,0), "IDCOMMANDE" NUMBER(*,0), "IDALBUM" NUMBER(*,0), "IDFORMAT...
<reponame>NowinskiK/ssdt-training CREATE TABLE [Application].[Cities]( [CityID] [int] NOT NULL, [CityName] [nvarchar](50) COLLATE Latin1_General_100_CI_AS NOT NULL, [StateProvinceID] [int] NOT NULL, [Location] [geography] NULL, [LatestRecordedPopulation] [bigint] NULL, [LastEditedBy] [int] NOT NULL, [ValidFrom]...
-- This file should undo anything in `up.sql` DROP TABLE demon_additions; DROP FUNCTION audit_demon_addition() CASCADE; DROP TABLE demon_modifications; DROP FUNCTION audit_demon_modification() CASCADE; DROP TABLE record_additions; DROP FUNCTION audit_record_addition() CASCADE; DROP TABLE record_modifications; DROP ...
-- randexpr1.test -- -- db eval {SELECT coalesce((select (abs(f)/abs(coalesce((select max(19*b+d*coalesce((select max(t1.c) from t1 where case when d>=(abs((11))/abs(t1.a*13+(13)-d*e+11)) then t1.c when t1.c>=a then 19 else -17 end*t1.e> -e),t1.f)) from t1 where 13<=t1.e),t1.d))) from t1 where t1.d in (select d from ...
<filename>scripts/postgres/content/sessions.sql /* if version 100000 */ select s.datname, s.pid, s.backend_type, s.usename, s.application_name, s.client_addr, s.client_hostname, s.backend_start, s.xact_start, s.query_start, s.state_change, s.wait_event_type, s.wait_event, s.state, s.backend_xid, s.ba...
<gh_stars>100-1000 -- TPC_H Query 18 - Large Volume Customer SELECT TOP 100 C_NAME, C_CUSTKEY, O_ORDERKEY, O_ORDERDATE, O_TOTALPRICE, SUM(L_QUANTITY) FROM CUSTOMER, ORDERS, LINEITEM WHERE O_ORDERKEY IN (SELECT L_ORDERKEY FROM LINEITEM GROUP BY L_ORDERKEY HAVING SUM(L_QUANTITY) > 300) AND C_CUSTKEY = O_CUSTKEY AND O_OR...
DROP TABLE IF EXISTS pickuplines; CREATE TABLE pickuplines ( line VARCHAR(250) NOT NULL ); DROP TABLE IF EXISTS comebacks; CREATE TABLE comebacks ( line VARCHAR(250) NOT NULL );
<filename>application/notice/sql/uninstall.sql -- ----------------------------- -- 导出时间 `2018-03-16 09:20:08` -- ----------------------------- DROP TABLE IF EXISTS `dp_notice_list`; DROP TABLE IF EXISTS `dp_notice_cate`; DROP TABLE IF EXISTS `dp_notice_user`;
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5591130_sys_gh_11232_Add_Croatia_To_EU_CountryArea.sql<gh_stars>1000+ CREATE TABLE backup.c_countryarea_assign_gh11232_07062021 AS SELECT * from c_countryarea_assign; UPDATE c_countryarea_assign SET ...
/* Copyright (C) 2015 IASA - Institute of Accelerating Systems and Applications (http://www.iasa.gr) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0...
DELETE FROM `script_texts` WHERE `entry` BETWEEN -1309023 AND -1309000; INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES (-1309000,'Let the coils of hate unfurl!',8421,1,0,'venoxis SAY_TRANSFORM'), (-1309001,'Ssserenity..at lassst!',0,1,0,'venoxis SAY_DEATH'), (-1309002,...
<filename>database/data.sql INSERT INTO `user` (`id`, `first_name`, `last_name`, `email`, `address`, `telephone`, `created`, `updated`, `version`) VALUES (1,'david','gilmour', '<EMAIL>', 'hello st', NULL, '2015-11-02 05:28:02', NULL, 0), (2,'roger','waters','<EMAIL>', 'final cut st', NULL, '2015-11-02 05:28:02', N...
<filename>data/SQL/202.sp_turnover_monthly_by_division_chart.sql delimiter // DROP PROCEDURE IF EXISTS sp_turnover_monthly_by_division_chart // /* 最近一年間の事業部別、かつ月別売上 */ CREATE PROCEDURE sp_turnover_monthly_by_division_chart( ) BEGIN select v.year , v.month , v.division_id , s.name as division_name ...
-- DDL generated by Postico 1.5.8 -- Not all database features are supported. Do not use for backup. -- Table Definition ---------------------------------------------- CREATE TABLE events ( id character varying(128) PRIMARY KEY, timestamp timestamp with time zone NOT NULL, client_id character varying(128)...
-- upgrade catalogue script 2.0.8 to 2.0.9 --CHANGE VARCHARS TO VARCHAR 64 FOR THE IDENTIFIERS NAMES ALTER TABLE sch_chameleon.t_replica_tables ALTER COLUMN v_table_name TYPE character varying(64), ALTER COLUMN v_schema_name TYPE character varying(64); ALTER TABLE sch_chameleon.t_discarded_rows ALTER COLUMN v_table_na...
\set ON_ERROR_STOP 1 BEGIN; DO $$ DECLARE empty_tag_ids INTEGER[]; BEGIN SELECT array_agg(id) FROM tag WHERE name ~ E'^\\s*$' INTO empty_tag_ids; DELETE FROM area_tag_raw WHERE tag = any(empty_tag_ids); DELETE FROM artist_tag_raw WHERE tag = any(empty_tag_ids); DELETE FROM event_tag_raw WHERE ta...
-- patch removed as it causes problems where stubs are emtpy, which is permitted -- alter table events modify event_stub varchar(30) not null, add unique index(event_stub); INSERT INTO patch_history SET patch_number = 26;
-- create vclass for created with condition 'int auto_increment unique',insert data to this class,select data,drop class create class xoo ( id int auto_increment unique , title varchar(100)); insert into xoo(title) values ('aaa'); insert into xoo(title) values ('bbb'); insert into xoo(title) valu...
<gh_stars>0 /* leave this v:091018\s.zaglio: help programmer to change code dinamically&sistematically g:utility */ CREATE proc [dbo].[sp__script_review] @old_code sysname=null, @new_code sysname=null, @objs sysname='%' as begin -- replace old g: tag -- sp__script_review '%g:sp__group%''utility''...
DROP FUNCTION calculate_availability(character varying,character varying,character varying,integer); CREATE OR REPLACE FUNCTION calculate_availability(value_stream_name character varying, machine_id character varying, end_time_string character varying, duration_in_sec Integer) RETURNS real LANGUAGE plpgsql STABLE ...
SELECT name FROM people JOIN stars ON stars.person_id=people.id JOIN movies ON movies.id=stars.movie_id WHERE movies.id IN(SELECT movies.id FROM movies JOIN stars ON stars.movie_id=movies.id JOIN people ON people.id=stars.person_id WHERE people.name='<NAME>' and people.birth=1958) and people.name != '<NAME>';
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mar. 02 juil. 2019 à 19:31 -- Version du serveur : 5.7.26 -- Version de PHP : 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
<filename>src/main/resources/db/migration/V1_12__remove_vedtak_and_vedtak_type_from_klage.sql ALTER TABLE klage DROP COLUMN vedtak; ALTER TABLE klage DROP COLUMN vedtak_type;
declare @days_to_report int set @days_to_report = 365 declare @total_pages decimal set @total_pages = (select sum(total_pages) from tbl_printer_usage_log where usage_date >= DATEADD(DAY,-@days_to_report,getdate()) and usage_allowed= 'Y' and refunded= 'N' and printed = 'Y' ) print @total_pages select printer1_.disp...
/* SQLyog Community v13.1.2 (64 bit) MySQL - 10.1.38-MariaDB : Database - u934804553_bzn ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_...
<reponame>JkRuiz/itearcion2 INSERT INTO INGREDIENTES VALUES('Papa' , 'Papas a la francesa', 'French fries'); INSERT INTO INGREDIENTES VALUES('Papa' , 'Papa diferente', 'Different fries'); SELECT * FROM INGREDIENTES;
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Generation Time: Dec 30, 2021 at 06:09 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
<reponame>zutheme/teamilk set @str1 = ''; #select @str1:= CONCAT(@str1,cs.namecat,',') as listcat from (SELECT * FROM `catehasproduct` where idproduct = 68 and idcategory > 0) as c JOIN categories as cs on c.idcategory = cs.idcategory; #SELECT person_id, GROUP_CONCAT(hobbies SEPARATOR ', ') #FROM peoples_hobbies #GROUP...
<gh_stars>0 -- Query the Name of any student in STUDENTS who scored higher than Marks. Order your output by the last three characters of each name. If two or more students both have names ending in the same last three characters (i.e.: Bobby, Robby, etc.), secondary sort them by ascending ID. SELECT NAME FROM STUDENTS...
<gh_stars>0 DELETE FROM USER_ADMIN; INSERT INTO USER_ADMIN (USER_ID, USER_NAME, PASSWORD) VALUES (10001, "USER_10001", "<PASSWORD>"); INSERT INTO USER_ADMIN (USER_ID, USER_NAME, PASSWORD) VALUES (10002, "USER_10002", "<PASSWORD>"); INSERT INTO USER_ADMIN (USER_ID, USER_NAME, PASSWORD) VALUES (10003, "USER_10003", "<PA...
<filename>hey.db.sql<gh_stars>10-100 BEGIN TRANSACTION; CREATE TABLE `tags` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `name` TEXT NOT NULL UNIQUE ); CREATE TABLE `people` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `name` TEXT NOT NULL UNIQUE ); CREATE TABLE `events_tags` ( `event_id` INTEGER NOT N...
<reponame>karlarao/oracle_storage_breakdown<gh_stars>1-10 set feedback off term off head on und off trimspool on echo off lines 4000 colsep ',' arraysize 5000 verify off newpage none COLUMN name NEW_VALUE _instname NOPRINT select lower(instance_name) name from v$instance; COLUMN conname NEW_VALUE _conname NOPR...
<gh_stars>1-10 -- AlterIndex ALTER INDEX "profile_user_id_unique" RENAME TO "profile.user_id_unique";
ALTER TABLE items ADD COLUMN condition VARCHAR;
<gh_stars>1-10 /*Solutions to Chapter 9 exercises. ############################################################################### # chapter9_exercsies.sql # # Revision: 1.00 # Date: 7/31/2021 # Author: Alex # # Purpose: Solutions to chapter 9 exercises from "Murach's MySQL", 3rd # ...
/* Formatted on 12-6-2018 5:11:08 PM (QP5 v5.126.903.23003) */ --DROP TABLESPACE "RHODB"; CREATE BIGFILE TABLESPACE RHODB DATAFILE '/u01/app/oracle/oradata/orcl/RHODB01.DBF' SIZE 100 M REUSE AUTOEXTEND ON NEXT 100 M MAXSIZE 33546240 M LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO; ALTER DAT...
<reponame>Kahiko/Growthware CREATE TABLE [ZGWSecurity].[Roles_Security_Entities_Accounts] ( [Roles_Security_Entities_SeqID] INT NOT NULL, [Account_SeqID] INT NOT NULL, [Added_By] INT CONSTRAINT [DF_ZGWSecurity_Roles_Security_Entities_Accounts_Added_By] DE...
<filename>Master/ThirdParty/x360ce/branches/v4.x/x360ce.Data/dbo/User Defined Types/x360ce_SummariesTableType.sql CREATE TYPE [dbo].[x360ce_SummariesTableType] AS TABLE ( [PadSettingChecksum] UNIQUEIDENTIFIER NULL, [ProductGuid] UNIQUEIDENTIFIER NULL, [ProductName] NVARCHAR (256) NULL, ...
<filename>apex/shared_components/lov/TIMEFRAME (4 WEEKS)/TIMEFRAME (4 WEEKS)[lovQuery].sql select disp, val as seconds from table( apex_util.get_timeframe_lov_data ) order by insert_order
DELETE FROM script_texts WHERE entry BETWEEN -1000364 AND -1000362; INSERT INTO script_texts (entry,content_default,sound,type,language,emote,comment) VALUES (-1000362,'Let\'s go $N. I am ready to reach Whitereach Post.',0,0,1,0,'paoka SAY_START'), (-1000363,'Now this looks familiar. If we keep heading east, I think we...
-- Copyright (c) 2020, Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ -- Coypright (c) 2020, Transaction Processing Performance Council -- TPC-H Query 18 - Large Volume Customer SELECT /*+ JOIN_SUFFIX(l, o, c) set_var(use_seconda...
-- -- Copyright (C) 2001, 2002 MIT -- -- this is free software; you can redistribute it and/or modify it under the -- terms of the GNU General Public License as published by the Free Software -- Foundation; either version 2 of the License, or (at your option) any later -- version. -- -- this is distributed in the...
<reponame>fivetran/dbt_google_play_source select * from {{ var('stats_crashes_os_version') }}
/* * Copyright (c) 2010-2013 LabKey Corporation * * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 */ SELECT bq.*, cast(CASE WHEN bq.species = 'Marmoset' THEN round(bq.weight*0.15*60, 1) ELSE round(bq.weight*0.2*60, 1) END as numeric) AS ...
-- create superuser CREATE USER polar_su SUPERUSER; \c - polar_su; -- create polar_superuser CREATE USER polar_psu POLAR_SUPERUSER; \c - polar_psu; -- create regular user CREATE USER polar_u; \c - polar_u; -- -- regular user create tables and triggers -- \c - polar_u; DROP TABLE IF EXISTS test_table_c3; DROP TABLE IF E...
3733,300,0 2522,36,0 2531,600,0 2534,120,0 14885,285,0 14921,400,0 8187,25,0 562,290,0 575,2400,0 590,1700,0 7895,259,0 628,37,0 638,1600,0 681,75,0 475,3000,0 699,2700,0 797,390,0 711,500,0 2505,700,0 750,94,0 3734,420,0 937,69,0 927,400,0 5055,70,0 3754,64,0 14961,31,0 14528,581,0 491,1300,0 511,5000,0 536,1300,0 556...
create extension pg_trgm; create extension btree_gin;
<reponame>steshaw/donkey<gh_stars>1-10 insert into address(id, employee_id, address) values (1, 1, '123 Pleasant Crescent, Rockville')
<reponame>noralebe/bootcamprepo<filename>mysql.sql --Question 1 select employees.emp_no, last_name, first_name, gender, salaries.salary from employees inner join salaries on employees.emp_no=salaries.emp_no; --Question 2 select first_name, last_name, hire from employees where (EXTRACT(year FROM hire)) in (1986); -...
<filename>non-apex/model/DATA_TABLE/SOK_ORDER_CONTENT.sql REM INSERTING into SOK_ORDER_CONTENT SET DEFINE OFF;
<gh_stars>0 SELECT MAX(count) FROM ( SELECT SUM(A.count * B.count) count FROM ( SELECT 'q' AS docid, 'washington' AS term, 1 AS count UNION SELECT 'q' AS docid, 'taxes' AS term, 1 AS count UNION SELECT 'q' AS docid, 'treasury' as term, 1 AS count ) A, ( SELECT * FROM frequenc...
CREATE TABLE IF NOT EXISTS team_match_week_stat( id SERIAL PRIMARY KEY, team_id INTEGER NOT NULL REFERENCES team, match_week_id INTEGER NOT NULL REFERENCES match_week, matches_played INTEGER NOT NULL DEFAULT 0, matches_won INTEGER NOT NULL DEFAULT 0, matches_drawn INTEGER NOT NULL DEFAULT 0, ...
CREATE TABLE join_reusage_photos ( reusage_id BIGINT REFERENCES reusage (id) ON DELETE CASCADE, photos VARCHAR(255), CONSTRAINT pk_join_reusage_photos PRIMARY KEY (photos) );
<reponame>PhpPlaisio/core<filename>lib/ddl/0100_create_tables.sql /*================================================================================*/ /* DDL SCRIPT */ /*================================================================================*/...
<gh_stars>1-10 CREATE TABLE Subjects ( SubjectID INT PRIMARY KEY IDENTITY, SubjectName VARCHAR(50) NOT NULL ) CREATE TABLE Majors ( MajorID INT PRIMARY KEY IDENTITY, [Name] VARCHAR(50) NOT NULL ) CREATE TABLE Students ( StudentID INT PRIMARY KEY IDENTITY, StudentNumber INT NOT NULL, StudentName VARCHAR(50) NOT...
<reponame>mooya/Philips-Hue-Php-control -- -- Tabelstructuur voor tabel `groups` -- CREATE TABLE IF NOT EXISTS `groups` ( `group_id` int(11) NOT NULL AUTO_INCREMENT, `group_name` varchar(255) NOT NULL, `group_order` int(11) NOT NULL, `timestamp` int(11) NOT NULL, PRIMARY KEY (`group_id`) ) ENGINE=MyISAM DEF...
<filename>db/akupuntur_new.sql -- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.31.10 -- Generation Time: Nov 28, 2020 at 09:37 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_z...
-- ifs-8314 deleting templates from db, as we now don't use the db for templates update competition_type set template_competition_id = NULL; delete from form_input_validator where form_input_id in ( select fi.id from form_input fi join question q on q.id = fi.question_id where q.competition_id in (select id fro...
<filename>sql/create_submit_tbl.sql WITH m AS ( SELECT channel_id, FORMAT_TIMESTAMP("%F %T", ts, "Asia/Seoul") ts, user_id, parent_user_id, text, -- # TODO : 수정 CASE WHEN due_ts = '2020-11-15 15:00:00' THEN 1 WHEN due_ts = '2020-11-29 15:00:00' THEN 2 WHEN due_ts = '2020-12-13 15:00:00' THEN 3 ...
-- file:time.sql ln:14 expect:true INSERT INTO TIME_TBL VALUES ('23:59')
INSERT INTO standard_baseline ( hqt_version, season, mgmt_zone, baseline) VALUES(?, ?, ?, ?)
<filename>config/libraries/gointerop_greeting_v0_0_1/gointerop-greeting.cql library "gointerop-greeting" version '0.0.1' using FHIR version '4.0.0' include "FHIRHelpers" version '4.0.0' called FHIRHelpers context Patient define "InPopulation": null define "Recommendation": if "InPopulation" then 'Seja bem vind...
------------------------------------------------------------------------------- -- employee info ------------------------------------------------------------------------------- CREATE TABLE EMPLOYEE_INFO( ID BIGINT NOT NULL, NAME VARCHAR(200), CREATE_TIME DATETIME, STATUS VARCHAR(50), DEPARTMENT VARCHAR(...
<filename>sql/variant-level-missingness.sql # Compute the ratio no-calls for each variant. # Note: this query does not account for samples for which no record is reported at a given position. SELECT reference_name, start, END, reference_bases, alternate_bases, no_calls, all_calls, (no_calls/all_calls) A...
<reponame>thufv/pspec-sql<gh_stars>1-10 SELECT ca_zip ,ca_state ,SUM(ws_sales_price) FROM web_sales JOIN customer JOIN customer_address JOIN date_dim JOIN item ON i_item_id = item.i_item_id WHERE ws_bill_customer_sk = c_customer_sk AND c_current_addr_sk = ca_address_sk AND ws_item_sk = i_item_sk AND ( ...
BEGIN; INSERT INTO `Friends` SELECT `ownerID`, `friendID`, `friendPerms`, 0 FROM `userfriends`; COMMIT;
<reponame>opengauss-mirror/Yat<gh_stars>0 -- @testpoint:插入字符串类型整数 drop table if exists bigint04; create table bigint04 (name bigint); insert into bigint04 values ('14165132'); select * from bigint04; drop table if exists bigint04;
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字over(非保留),自定义数据类型名为explain --关键字explain作为数据类型不带引号,创建成功 drop type if exists over; CREATE TYPE over AS (f1 int, f2 text); select typname from pg_type where typname ='over'; drop type over; --关键字explain作为数据类型加双引号,创建成功 drop type if exists "over"; CREATE TYPE "over...
CREATE TABLE public.items ( "id" int8 NOT NULL, "user_id" int4 NOT NULL, "character_id" int4 NOT NULL, "count" int4 DEFAULT -1, "init_count" int4 DEFAULT -1, "enchant_level" int4 DEFAULT 0, "grade_id" int4 DEFAULT 0, "equip_level" int4 DEFAULT 0, "period" int4 DEFAULT -1, "start_date" int4 DEFAULT 0, "reg_da...
SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO CREATE PROCEDURE [SQLCop].[test Column collation does not match database default] AS BEGIN -- Written by <NAME> -- February 25, 2012 SET NOCOUNT ON DECLARE @Output VarChar(max) SET @Output = '' SELECT @Output = @Output + C.TABLE_SCHEMA + '.' + C.TABLE_NAME + '....
<gh_stars>0 --scope e:TABLESPACE --input DROP TABLESPACE e; --output NEEDED e:TABLESPACE DROPPED e:TABLESPACE
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Мар 01 2017 г., 14:54 -- Версия сервера: 5.7.16-log -- Версия PHP: 7.1.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
create table if not exists voting_locations_2019( "region_id" integer, -- Област код "region_name" text, -- Област текст "municipality_id" integer, -- Община код "municipality_name" text, -- Община "municipality_region_code" text, -- Район код "municipality_region_name"...
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 20, 2021 at 03:41 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<filename>lostfound.sql -- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 19, 2019 at 04:55 AM -- Server version: 10.1.33-MariaDB -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:...
SELECT TOP 5 c.CountryName AS [Country], CASE WHEN p.PeakName IS NULL THEN '(no highest peak)' ELSE p.PeakName END AS [HighestPeakName], CASE WHEN p.Elevation IS NULL THEN 0 ELSE MAX(p.Elevation) END AS [HighestPeakElevation], CASE WHEN m.MountainRange IS NULL THEN '(no ...
<gh_stars>1-10 CREATE PROCEDURE [dbo].[GetApprenticeshipStatusSummaries] @employerAccountId BIGINT AS SELECT ale.LegalEntityId, ale.OrganisationType as 'LegalEntityOrganisationType', a.PaymentStatus, COUNT(*) AS 'Count' FROM Apprenticeship a INNER JOIN Commitment c ON a.CommitmentId = c.Id INNER JOIN [AccountLegal...
INSERT INTO unit_type_param (unit_type_param_id, unit_type_id, name, flags) VALUES (107, 1, 'System.X_FREEACS-COM.Comment', 'X'); INSERT INTO unit_type_param (unit_type_param_id, unit_type_id, name, flags) VALUES (108, 1, 'System.X_FREEACS-COM.Debug', 'X'); INSERT INTO unit_type_param (unit_type_param_id, unit_type_id,...
<filename>SQL-Performance-Baseline/CREATEDATABASE.sql USE [master] GO /****** Object: Database [dba_local] Script Date: 12/10/2014 2:12:24 PM ******/ CREATE DATABASE [dba_local] ON PRIMARY ( NAME = N'dba_local', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\dba_local.mdf'...
<reponame>mrudulpolus/kc<gh_stars>0 alter table PROTOCOL_REFERENCE_TYPE add active_flag char(1); update PROTOCOL_REFERENCE_TYPE set active_flag = 'Y';
<reponame>vskurikhin/DayBook-2.0 CREATE SEQUENCE dictionary.setting_seq START 1; CREATE TABLE dictionary.setting ( id BIGINT AUTO_INCREMENT PRIMARY KEY NOT NULL, key VARCHAR(1024), value VARCHAR(65536), value_type_id BIGINT, CONSTRAINT FK_5014_dictionary_setting...
<gh_stars>0 drop table if exists pt.adjustment; drop table if exists pt.chargeback; drop table if exists pt.invoice; drop table if exists pt.payment; drop table if exists pt.refund; alter table pt.shop_meta drop column if exists has_payment_institution_acc_pay_tool;
<gh_stars>0 --"INTEL CONFIDENTIAL" --Copyright 2016 Intel Corporation All Rights Reserved. -- --The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or it...
<gh_stars>0 --DROP TABLE IF EXISTS company_info; CREATE TABLE IF NOT EXISTS company_info ( code VARCHAR(20), company VARCHAR(40), last_update DATE, PRIMARY KEY (code)); --DROP TABLE IF EXISTS daily_price; CREATE TABLE IF NOT EXISTS daily_price ( code VARCHAR(20), date DATE, open BIGINT(2...