sql
stringlengths
6
1.05M
<gh_stars>0 -- -- PostgreSQL database dump -- SET client_encoding = 'UTF8'; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres -- COMMENT ON SCHEMA public IS 'Standard public schema'; -- -- Name: plpgsql; Type: PROCEDURAL LANGU...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 09, 2017 at 08:36 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=@@...
select name, population, area from world where population > 25000000 or area >3000000
<filename>database/crud.sql -- Adminer 4.6.0 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET NAMES utf8mb4; DROP TABLE IF EXISTS `contacts`; CREATE TABLE `contacts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `first_name` varchar(2...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 12 Apr 2021 pada 16.51 -- Versi server: 10.4.18-MariaDB -- Versi PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
INSERT INTO department (name) VALUES ("Sales"), ("Customer Service"), ("Human Resources"), ("Warehouse"), ("Accounting"), ("Administration"), ("Quality Assurance"), ("Management"); INSERT INTO role (title, salary, department_id) VALUES ("Manager", "75000.00", "8"), ("Sal...
<gh_stars>0 -- SQL Dump SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; ...
-- Schema for inserting the 'data' into the tables INSERT INTO company (first_name, last_name, roles, department, salary, manager) VALUES ('John','Doe','Sales Lead','Sales','100000','<NAME>'); INSERT INTO company (first_name, last_name, roles, department, salary, manager) VALUES ('Ashely','Rodrigo','Sales Manager','C...
<gh_stars>1-10 SET NAMES utf8mb4; USE devops_ci_process; -- 空白流水线模板 INSERT IGNORE INTO `T_TEMPLATE` (`VERSION`, `ID`, `TEMPLATE_NAME`, `PROJECT_ID`, `VERSION_NAME`, `CREATOR`, `CREATED_TIME`, `TEMPLATE`, `TYPE`, `CATEGORY`, `LOGO_URL`, `SRC_TEMPLATE_ID`, `STORE_FLAG`, `WEIGHT`) VALUES (1, '072d516d300b4812a4f652f585...
-- 1. Write a DML statement trigger that enforces a business rule, which states that each time one or more employees are added to the EMPLOYEES table, an audit record must also be created. -- - Create the AUDIT_TABLE by executing the following SQL statement: create table audit_table (action varchar...
-- mysqldump-php https://github.com/ifsnop/mysqldump-php -- -- Host: localhost Database: db_system -- ------------------------------------------------------ -- Server version 5.5.5-10.1.30-MariaDB -- Date: Mon, 21 Jan 2019 01:35:03 +0800 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @...
<gh_stars>1-10 select Sub, count(*) as ErrCount from Errors Where ErrTime > DATEADD(Month, -3, getdate()) group by Sub order by count(*) desc
<filename>src/main/resources/db/migration/V1_14__disabilities_list.sql alter table referral_service_user_data alter disabilities type text[] using array[disabilities];
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS articles ( id SERIAL PRIMARY KEY, item_name VARCHAR NOT NULL, created_at BIGINT NOT NULL, updated_at BIGINT NOT NULL ); CREATE TABLE IF NOT EXISTS article_stocks ( id SERIAL PRIMARY KEY, article_id INT NOT NULL UNIQUE, stock BIGINT NOT NULL, cre...
create table if not exists transaction_valid_tstzrange ( transaction_time tstzrange_half_open not null default tstzrange(current_timestamp, 'infinity', '[)') , valid_time tstzrange_half_open not null default tstzrange(current_timestamp, 'infinity', '[)') ); create table if not exists transaction_valid_datera...
<filename>src/test/resources/sql/explain/dd8dd5cf.sql<gh_stars>10-100 -- file:select_views.sql ln:135 expect:true EXPLAIN (COSTS OFF) SELECT * FROM my_credit_card_usage_secure WHERE f_leak(cnum) AND ymd >= '2011-10-01' AND ymd < '2011-11-01'
<gh_stars>1-10 -- This code extracts structured data from echocardiographies -- You can join it to the text notes using ROW_ID -- Just note that ROW_ID will differ across versions of MIMIC-III. DROP MATERIALIZED VIEW IF EXISTS echodata CASCADE; CREATE MATERIALIZED VIEW echodata AS select ROW_ID , subject_id, hadm_id...
<filename>pkg/datastore/sqlstore/migrations/postgres/5_create_sites_table.sql -- +migrate Up CREATE TABLE sites ( id SERIAL PRIMARY KEY NOT NULL, tracking_id VARCHAR(8) UNIQUE, name VARCHAR(100) NOT NULL ); -- +migrate Down DROP TABLE IF EXISTS sites;
-- Add migration script here create table sessions ( id bigserial primary key, user_id bigserial, token varchar(128) unique not null );
CREATE INDEX ON :Recipe(id); CREATE INDEX ON :Ingredient(name); CREATE INDEX ON :Keyword(name); CREATE INDEX ON :DietType(name); CREATE INDEX ON :Author(name); CREATE INDEX ON :Collection(name); CREATE CONSTRAINT ON (n:Recipe) ASSERT n.friendlyUrl IS UNIQUE; :params jsonFile => "https://raw.githubusercontent.com/mneed...
<filename>app/spy_binds.sql -- Consider changing to GLOBAL TEMPORARY TABLE if performance is poor CREATE TABLE spy_binds (run_id INT NOT NULL ,parameter_id INT NOT NULL ,bound_value VARCHAR2(1000) ,constraint spy_binds_pk primary key (run_id, parameter_id) ,constraint spy_binds_parameter_fk foreign key (parameter_id) r...
<reponame>lamtrhieu/flowable-engine drop index ACT_IDX_BYTEAR_DEPL; drop index ACT_IDX_EXE_PROCINST; drop index ACT_IDX_EXE_PARENT; drop index ACT_IDX_EXE_SUPER; drop index ACT_IDX_TSKASS_TASK; drop index ACT_IDX_TASK_EXEC; drop index ACT_IDX_TASK_PROCINST; drop index ACT_IDX_TASK_PROCDEF; drop index ACT_IDX_VA...
-- ==== INNMS =============================================== INSERT INTO public.innms (id, sctid, name, name_original, is_active, inserted_by, updated_by, inserted_at, updated_at) VALUES ('ee2327d4-d265-484d-8513-a9af92097bca', null, 'Аміодарон', 'Amiodarone', true, '4261eacf-8008-4e62-899f-de1e2f7065f0', '4261eacf-80...
<gh_stars>1-10 -- 22295 replicates from 22294 UPDATE ham_database_instance SET last_seen_timestamp=last_checked_timestamp - interval 1 minute where port=22294; UPDATE ham_database_instance SET is_last_check_partial_success = 1 where port=22294;
create table {schema}.users (id integer, username varchar(100));
CREATE VIEW public.v8 AS SELECT v5.c1, v7.c2 FROM public.v5, public.v7; ALTER TABLE public.v8 OWNER TO galiev_mr;
-- SPDX-License-Identifier: MIT -- rename table ALTER TABLE IF EXISTS admin_config RENAME TO adm_config;
<reponame>credativ/pg_xlog_location_diff<filename>uninstall_pg_xlog_location_diff.sql DROP FUNCTION pg_xlog_location_switch(text, text);
<filename>go/src/infra/appengine/statsui/sql/cq_builder_metrics/cq_builder_metrics_day_slow_tests.sql -- This query updates the 'P50 Slow Tests' and 'P90 Slow Tests' metrics in the cq_builder_metrics_day -- table. It uses an interval of the last 2 days so that there is some redundancy if the job fails -- Slow tests are...
<reponame>antoinecarme/caret2sql<filename>demo/CaretClassifier_rpart/digits/teradata/demo3_caret_CaretClassifier_rpart_teradata.sql -- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : CaretClassifier_rpart -- Dataset : digits -- Database : teradata -- This SQL code can c...
<reponame>carlosteixeiracruz/desafio-fullstack -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 29, 2019 at 03:52 AM -- Server version: 5.7.24 -- PHP Version: 7.1.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET ti...
-- Select the burgers_db USE burgers_db; -- Insert new rows of data. INSERT INTO burgers (burger_name, devoured) VALUES ('Original Burger', FALSE); INSERT INTO burgers (burger_name, devoured) VALUES ('Cheese Burger', FALSE); INSERT INTO burgers (burger_name, devoured) VALUES ('BBQ Burger', FALSE);
<filename>porsche_ci.sql -- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 28, 2020 at 02:57 AM -- Server version: 5.6.49-cll-lve -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = ...
CREATE TABLE result ( id bigint(20) NOT NULL AUTO_INCREMENT, name varchar(200) not null, scan_time datetime not null, created timestamp not null, PRIMARY KEY (id) ) ; CREATE TABLE vulnerability_count ( id bigint(20) NOT NULL AUTO_INCREMENT, result_id bigint(20) not null, severity varchar(200) not null,...
<filename>src/main/resources/sql/createtables.sql<gh_stars>0 CREATE TABLE posts ( post_uuid uuid primary key, title text not null, content text, publishing_date date ); CREATE TABLE comments ( comment_uuid uuid primary key, post_uuid uuid references posts(post_uuid), author text, conten...
<gh_stars>0 CREATE TABLE [dbo].[UserMessage] ( [ID] INT IDENTITY (1, 1) NOT NULL, [User_Message] NVARCHAR (MAX) NULL, [Date_Entered] DATETIME DEFAULT (getdate()) NULL, CONSTRAINT [PK_MessageID] PRIMARY KEY CLUSTERED ([ID] ASC) );
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 23, 2018 at 11:16 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>src/test.sql use it -- or lose it --some comment set identity_INSERT foo on INSERT into foo (x, y) VALUES (1,2) set identity_INSERT foo on set identity_INSERT flibble on INSERT into flibble (a, b) VALUES (1,'oranges for £0.20') INSERT into flibble (a, b) VALUES (1,'apples for £1.99/lb') set identity_I...
<reponame>s-kharitonov/online-shop<gh_stars>0 --liquibase formatted sql --changeset skharitonov:2021-09-16-init-languages-table create table if not exists languages ( id bigserial primary key, code varchar(3) not null unique, creation_date timestamp not null, last_update_da...
<filename>db/sql/5940__insert_table_d_koulutusluokitus.sql USE [ANTERO] GO begin set identity_insert dw.d_koulutusluokitus on insert into [dw].[d_koulutusluokitus] ( [id] ,[koulutusluokitus_avain] ,[koulutusluokitus_koodi] ,[koulutusluokitus_fi] ,[koulutusluokitus_sv] ,[koulutusluokitus_en] ,[koulut...
<gh_stars>1-10 /* For all items whose price was changed on a given date, compute the percentage change in inventory between the 30day period BEFORE the price change and the 30day period AFTER the change. Group this information by warehouse. */ --Replace <yourTableNameHere> with your external table name that you ...
/****** Object: Stored Procedure dbo.b4nGetPlaceOrderParameters Script Date: 23/06/2005 13:31:55 ******/ /* */ /* Change Control : 05/07/2005 <NAME> - Modified to use versioning of catalogue * */ /** Change Control : 18/01/2006 - <NAME> updated this stored procedure to fix bug...
<reponame>NeotomaDB/Neotoma_SQL CREATE OR REPLACE FUNCTION ts.insertisosrmetadata(_datasetid integer, _variableid integer, _srlocalvalue double precision DEFAULT NULL::double precision, _srlocalgeolcontext character varying DEFAULT NULL::character varying) RETURNS void LANGUAGE sql AS $function$ INSERT INTO ndb.iso...
-- installation SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET NAMES utf8mb4; CREATE USER 'dbusr'@'%' IDENTIFIED BY 'db<PASSWORD>'; GRANT ALL ON test.* TO 'dbusr'@'%'; DROP DATABASE IF EXISTS `test`; CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER ...
# https://www.codewars.com/kata/5809508cc47d327c12000084/train/sql SELECT * FROM people WHERE age > 50 ORDER BY age desc
<filename>Task3/q1.sql SELECT 'This is single lessons per month in year 2021'; select extract(MONTH from lesson.datum) AS MONTH, extract(year from datum) AS year, count(*) from lesson where extract(year from datum) = 2021 group by extract(MONTH from datum), extract(year from datum); SELECT 'This ...
-- avtrans.test -- -- execsql { -- BEGIN TRANSACTION; -- DROP INDEX i1; -- SELECT * FROM t1 WHERE b<1; -- ROLLBACK; -- } BEGIN TRANSACTION; DROP INDEX i1; SELECT * FROM t1 WHERE b<1; ROLLBACK;
<filename>spring-boot/specification/src/main/resources/data.sql insert into address (id, city, state, pincode) values ('addr_1', 'chicago', 'TEXAS', 'AB9898'); insert into address (id, city, state, pincode) values ('addr_2', 'hells kitchen', 'CALIFORNIA', 'AB9899'); insert into address (id, city, state, pincode) values...
<filename>src/main/resources/db/migration/V1__Init_DB.sql USE cds; create table hibernate_sequence ( next_val bigint ) engine = InnoDB; insert into hibernate_sequence values (1); CREATE TABLE ADDRESS ( id BIGINT NOT NULL AUTO_INCREMENT, country VARCHAR(500), city VARCHAR(500), street ...
<reponame>sramana2/so<filename>adapters/mso-catalog-db-adapter/src/test/resources/db/migration/afterMigrate.sql CREATE TABLE IF NOT EXISTS `homing_instances` ( `SERVICE_INSTANCE_ID` varchar(50) NOT NULL, `CLOUD_OWNER` VARCHAR(200) NOT NULL, `CLOUD_REGION_ID` VARCHAR(200) NOT NULL, `OOF_DIRECTIVES` longtext NULL DEFAU...
/* Load manual mappings */ -- Dose form CREATE TABLE IF NOT EXISTS auh.map_dose_form ( dosf_lt VARCHAR(255), frequency integer, dosf_lt_en VARCHAR(255), dose_concept_id integer, rxnorm_term VARCHAR(255), other_options VARCHAR(255), remarks VARCHAR(255) ); \copy auh.map_dose_form FROM 'manual_mappi...
<gh_stars>1-10 -- -- Copyright 2015 WSO2 Inc. (http://wso2.org) -- -- 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 -- -- Unless requi...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License")...
--q93.sql-- select ss_customer_sk, sum(act_sales) sumsales from (select ss_item_sk, ss_ticket_number, ss_customer_sk, case when sr_return_quantity is not null then (ss_quantity-sr_return_quantity)*ss_sales_price else (ss_quantity*ss_sales_price) end...
-- @gucs gp_create_table_random_default_distribution=off -- Rename tablename ALTER TABLE heap_table1 RENAME TO heap_table_new_name; -- Alter the table to new schema CREATE SCHEMA new_schema1; ALTER TABLE schema1.heap_table2 SET SCHEMA new_schema1;
DROP TABLE IF EXISTS HELPDESK_STATUSES; CREATE TABLE HELPDESK_STATUSES (STATUS_ID INTEGER PRIMARY KEY AUTOINCREMENT, STATUS VARCHAR(25) NOT NULL); INSERT INTO HELPDESK_STATUSES (STATUS_ID, STATUS) VALUES ('1', 'Pending'); INSERT INTO HELPDESK_STATUSES (STATUS_ID, STATUS) VALUES ('2', 'Re...
SELECT e.FirstName, e.LastName, e.HireDate, d.[Name] AS DeptName FROM Employees e LEFT JOIN Departments d ON d.DepartmentID = e.DepartmentID WHERE d.[Name] IN ('Sales', 'Finance') AND e.HireDate > '1999-01-01' ORDER BY e.HireDate SELECT TOP(5) e.EmployeeID, e.FirstName, p.[Name] AS ProjectName FROM E...
ALTER TABLE "public"."patient" ADD COLUMN "gender" int4; ALTER TABLE "public"."patient" ALTER COLUMN "gender" DROP NOT NULL;
insert into address_data_set values (default, 'First street'); insert into client values (default, 'dbServiceFirst', (select max(id) from address_data_set where street = 'First street')); insert into phone_data_set values (default, 'Phone 1', (select max(id) from client where name = 'dbServiceFirst')); insert into phon...
<gh_stars>0 SELECT EmployeeID, FirstName, LastName,Salary, DENSE_RANK() OVER(PARTITION BY Salary ORDER BY EmployeeID) AS [Rank] FROM Employees WHERE Salary BETWEEN 10000 AND 50000 ORDER BY Salary DESC
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Mar 04, 2019 at 10:47 AM -- Server version: 5.7.21 -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `kkcl` -- -- -------------------------------...
<filename>VS2013_PROJECT/DNN_DB/dbo/Functions/dnn_EDSGallery_StringListToTable.sql CREATE FUNCTION dbo.[dnn_EDSGallery_StringListToTable] ( @List nvarchar(max) ) RETURNS @TableOfValues TABLE ( KeyID int not null ) AS BEGIN DECLARE @KeyID varchar(10), @Pos int SET @List = LTRIM(RTRIM(@List))+ ',' SE...
<filename>migrations/20220117000000.do.KaraParentsConstraints.sql ALTER TABLE kara_relation DROP CONSTRAINT kara_relation_fk_kid_child_fkey; ALTER TABLE kara_relation DROP CONSTRAINT kara_relation_fk_kid_parent_fkey; ALTER TABLE kara_relation ADD CONSTRAINT kara_relation_fk_kid_child_fkey FOREIGN KEY(fk_kid_child) ...
CREATE TABLE towers( id smallint UNIQUE NOT NULL, name varchar); INSERT into towers values(0, 'Hamilton'); INSERT into towers values(1, 'Story'); GRANT SELECT on towers to nobody,apache; GRANT ALL on towers to mesonet,ldm; CREATE TABLE data_analog( tower smallint REFERENCES towers(id), valid timestamptz, ws...
/*Please add ; after each select statement*/ CREATE PROCEDURE volleyballResults() BEGIN SELECT * FROM results ORDER BY wins ASC; END
BEGIN; CREATE EXTENSION IF NOT EXISTS cbor; \set iterations 3 \set indefinite_items 3 \set max_chars 25000 -- -- Helper-functions to generate random UTF-8 encoded Unicode characters -- CREATE OR REPLACE FUNCTION r(from_byte bit(8), to_byte bit(8)) RETURNS text LANGUAGE sql AS $$ SELECT lpad(to_hex(from_byte::intege...
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 8.0.21, for osx10.15 (x86_64) -- -- Host: mysql Database: laradmin -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
/* Script: CheckInvalidGeom.sql Purpose: Microsoft Transact SQL Script that will check data to see any invalid geometries exist in described geomerty data. Data and tables in script based off tutorial information from here: http://www.benjaminspaulding.com/2011/11/15/...
<filename>Sqlite/System_Tests/Queries/Avg_Query_CFileWriteTest1.sql --For CFileWriteTest1 -- The average of the ping current values, this will be the second value displayed SELECT avg(wattage) FROM PowerMeasurement WHERE strftime('%H %M %S %f', date) BETWEEN strftime('%H %M %S %f', '2021-10-25 17:34:57.002072') AND ...
-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: goods_service -- ------------------------------------------------------ -- Server version 5.7.24-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
-- SETTINGS SET @iCategId = (SELECT `id` FROM `sys_options_categories` WHERE `name`='bx_polls' LIMIT 1); DELETE FROM `sys_options` WHERE `name`='bx_polls_per_page_for_favorites_lists'; INSERT INTO `sys_options` (`name`, `value`, `category_id`, `caption`, `type`, `check`, `check_params`, `check_error`, `extra`, `or...
<gh_stars>1-10 select * from restaurants except select * from restaurants_exp union all select * from restaurants_exp except select * from restaurants
<reponame>ericw142/HandlebarsBurgers INSERT INTO burgers (burger_name, devoured) VALUES ('Big Burger', false); INSERT INTO burgers (burger_name, devoured) VALUES ('Cheeseburger', false); INSERT INTO burgers (burger_name, devoured) VALUES ('Vegan Burger', false); INSERT INTO burgers (burger_name, devoured) VALUES ('Sli...
<reponame>azmifauzan/greatnesia -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 13, 2017 at 09:53 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
CREATE TABLE service_categories( uuid uuid default uuid_generate_v4() primary key, title title, icon citext, type category_type not null ); COMMENT on table service_categories is 'Collection of services.'; INSERT INTO service_categories (title,...
<reponame>gpcnetwork/DataQuality /**Check for ETL issues in the PCORnet database by tracking gentamicin medication and order of creatinine lab test for inpatient encounters**/ ---Check using 2021 cyle SELECT pp.PRESCRIBINGID, pp.* FROM PCORNET_CDM.CDM_C009R020.ENCOUNTER pe LEFT JOIN PCORNET_CDM.CDM_C009R020.PRESC...
<gh_stars>0 CREATE DATABASE IF NOT EXISTS `selectadb` /*!40100 DEFAULT CHARACTER SET big5 */; USE `selectadb`; -- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: 127.0.0.1 Database: selectadb -- ------------------------------------------------------ -- Server version 5.7.19 /*!40101 SET @OLD_...
<gh_stars>0 SET planner.width.max_per_node=100; SET planner.slice_target=1; SET planner.enable_multiphase_agg=false; SELECT var_pop(cast(DECIMAL_18_18 as decimal(18, 18))), var_pop(cast(DECIMAL_2_2 as decimal(2, 2))), var_pop(cast(DECIMAL_15_15 as decimal(15, 15))) FROM dfs.drillTestDir.`decimal/fragments/T_DECIMAL_BIG...
/****** Object: StoredProcedure [dbo].[DoAnalysisRequestOperation] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE Procedure DoAnalysisRequestOperation /**************************************************** ** ** Desc: ** Perform analysis request operation defined by 'mode' ** ** Return val...
# --- !Ups ALTER TABLE notification_event DROP COLUMN message; # --- !Downs ALTER TABLE notification_event ADD COLUMN message CLOB;
<reponame>PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS -- -- Name: storage_schema_type; Type: TABLE; Schema: admin; Owner: pgwatch2 -- CREATE TABLE admin.storage_schema_type ( schema_type text NOT NULL, initialized_on timestamp with time zone DEFAULT now() NOT NULL, CONSTRAINT storage_schema_type_schema_t...
<filename>sql/_17_sql_extension2/_02_full_test/_05_date_time_function/_14_last_day/cases/last_day_005.sql --marginal values of date/timestamp/datetime type --1. marginal values: date argument select last_day(date'0001-01-01'); select last_day(date'9999-12-31'); select last_day(date'12/31/9999'); select last_day(da...
-- @testpoint:opengauss关键字Granted(非保留),作为角色名 --关键字不带引号-成功 drop role if exists Granted; create role Granted with password '<PASSWORD>' valid until '2020-12-31'; drop role Granted; --关键字带双引号-成功 drop role if exists "Granted"; create role "Granted" with password '<PASSWORD>' valid until '2020-12-31'; drop role "Granted...
 CREATE PROCEDURE [dbo].[usp_selectCBRRates] @date_req date as --[usp_selectCBRRates] '2021-01-01' -- for loging declare @dtStartLogging datetime =getdate(), @msTime int=-1, @rowsCount int=-1 declare @count1 int=0 declare @count2 int=0 select @count1 =count([dtRequest]) from [dbo].[tbl_noRatesDates] (nolock) wher...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 04, 2021 at 07:43 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
-- ------------------------------------------------------------- -- TablePlus 3.8.0(336) -- -- https://tableplus.com/ -- -- Database: d1lcc3mpc2581n -- Generation Time: 2020-09-09 21:52:48.3470 -- ------------------------------------------------------------- -- This script only contains the table creation statements ...
<reponame>ekojaya/Rest-Api-With-Larvel -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 05, 2019 at 02:31 PM -- Server version: 5.7.27 -- PHP Version: 7.3.9-1+ubuntu19.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; S...
---------------------------------------------------------------- -- Show all ---------------------------------------------------------------- SELECT * FROM NashvilleHousing..data /* Data cleaninig */ ---------------------------------------------------------------- -- Standardize sale date format ----------------------...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th3 27, 2017 lúc 03:28 SA -- Phiên bản máy phục vụ: 10.1.21-MariaDB -- Phiên bản PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
<reponame>au-child-care/portfolio-api -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: db -- Generation Time: Apr 07, 2019 at 04:19 PM -- Server version: 5.7.25 -- PHP Version: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:0...
<gh_stars>0 DROP DATABASE IF EXISTS okaypill; CREATE DATABASE okaypill; DROP TABLE IF EXISTS ips; CREATE TABLE ips ( id serial primary key, ip varchar(255), date DATE NOT NULL DEFAULT CURRENT_DATE )
<filename>int-test/src/main/resources/db/migration/V5__Rename_threadid_to_channelid.sql RENAME COLUMN MESSAGECHANNELS.THREADID to CHANNELID;
# 01. Table Design CREATE TABLE pictures( id INT(11)PRIMARY KEY AUTO_INCREMENT, path VARCHAR(255) NOT NULL, size DECIMAL(10,2) NOT NULL ); CREATE TABLE users( id INT(11)PRIMARY KEY AUTO_INCREMENT, username VARCHAR(30) NOT NULL UNIQUE , password VARCHAR(30) NOT NULL, profile_picture_id INT(11), CONSTRAI...
<filename>database/init/cities/city.list171.sql insert into city values (8067221,"Sidomulyo","ID",108.625702,-7.6554), (8067233,"Cibuluh Satu","ID",108.741402,-7.64), (8067272,"Sukamanah","ID",108.651398,-7.659), (8067277,"Bengkekan","ID",108.666199,-7.6628), (8067294,"Emplak","ID",108.730202,-7.6608), (8067303,"Karang...
<filename>create_tables.sql CREATE SEQUENCE usr_type_id_seq; CREATE TABLE USER_TYPE_REF( user_type_ref_id int not null PRIMARY KEY DEFAULT nextval('usr_type_id_seq'), usr_type_desc varchar not null ); CREATE SEQUENCE usrs_id_seq; CREATE TABLE USERS( user_id int not null PRIMARY KEY DEFAULT nextval('usrs_id_...
<filename>database/pizza_delivery.sql -- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: localhost Database: pizza_delivery -- ------------------------------------------------------ -- Server version 8.0.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTE...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 09, 2019 at 04:52 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.1.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
CREATE TABLE IF NOT EXISTS cidades( id INT UNSIGNED NOT NULL AUTO_INCREMENT, nome VARCHAR(255) NOT NULL, estado_id INT UNSIGNED NOT NULL, area DECIMAL(10,2), PRIMARY KEY (id), -- Chave estrangeira (estadoid) referenciu ao banco de dados `estados` FOREIGN KEY (estado_id) REFERENCES estados (i...
<filename>Test Cases/input3.sql set serveroutput on; set verify on; declare law_name Laws.name%type; release_date Laws.r_date%type; law_code Laws.code%type; defi Laws.definition%type; punish Laws.punishment%type; common_place Laws.App_law%type; cursor emp_c is select * from Laws; find_code Laws.code%type; count_l num...
IF NOT EXISTS(SELECT [schema_id] FROM sys.schemas WHERE [name]='Payments') BEGIN EXEC('CREATE SCHEMA Payments') END GO ----------------------------------------------------------------------------------------------------------------------------------------------- -- Collection_Period_Mapping -------------------------...