sql
stringlengths
6
1.05M
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- RESYNC AO Part Table 1 -- CREATE TABLE resync_ao_alter_part_drop_col1 (id int, name text,rank int, year date, gender char(1)) with ( appendonly='true') DISTRIBUTED BY (id, gender, year) partition by list (gender) subpartition by ...
<reponame>deart2k/gpdb<gh_stars>10-100 include: helpers/server_helpers.sql; -- table to just store the master's data directory path on segment. CREATE TABLE lockmodes_datadir(a int, dir text); INSERT INTO lockmodes_datadir select 1,datadir from gp_segment_configuration where role='p' and content=-1; 1: set optimizer ...
<reponame>muntaza/Open_Persediaan SELECT * FROM view_beban_barang4_rsud UNION ALL
-- -- Table structure for table 'category' -- DROP TABLE IF EXISTS category; CREATE TABLE category ( category_id int UNSIGNED NOT NULL AUTO_INCREMENT, category_uuid CHAR(36) NOT NULL, element_id int UNSIGNED, dir varchar(255) NOT NULL, parent_id int UNSIGNED, sit...
SET FOREIGN_KEY_CHECKS = 0; DROP table if exists bspider_project; CREATE TABLE `bspider_project` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id', `name` varchar(100) NOT NULL COMMENT '任务名称', `status` int(11) NOT NULL COMMENT '任务状态 0: 关闭 1: 开启 -1: 删除', `type` varchar(100) NOT NULL COMMENT '任务种类,operation,...
DROP TABLE IF EXISTS accounts; DROP SEQUENCE IF EXISTS accounts_id_seq; CREATE SEQUENCE IF NOT EXISTS accounts_id_seq INCREMENT BY 1 NO MINVALUE NO MAXVALUE START WITH 1 CACHE 1; CREATE TABLE IF NOT EXISTS accounts ( -- id BIGINT DEFAULT nextval('accounts_id_seq'), name text, url text,...
<filename>sql/update_2020_01_29.sql ALTER TABLE `users` ADD `login` VARCHAR(255) NOT NULL AFTER `id`; UPDATE `users` SET login = email; ALTER TABLE `users` ADD UNIQUE `login` (`login`); ALTER TABLE `users` CHANGE `email` `email` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL; ALTER TABLE `users` ADD `netw...
--******************* --* Create prod views --******************* use role sysadmin ; use warehouse convex_load_dwh ; use database convex ; use schema prod ; create or replace view customer_summary as select cust.customer_id , cust.loyalty_score , prod.product_id , upper(substr(prod.product_category...
--01. Employees with Salary Above 35000 CREATE PROC usp_GetEmployeesSalaryAbove35000 AS SELECT FirstName, LastName FROM Employees WHERE Salary > 35000 EXEC usp_GetEmployeesSalaryAbove35000 --02. Employees with Salary Above Number GO CREATE PROC usp_GetEmployeesSalaryAboveNumber(@salary DECIMAL(18,4)) AS SELECT F...
INSERT INTO `fav_rate` (ID_Inst) VALUES (?);
<filename>src/test/resources/mysql-set1/V1.4__alter-multi-clause.sql<gh_stars>1-10 -- Currently being addressed in https://github.com/jOOQ/jOOQ/issues/8846 -- Workaround: separate into individual ALTER statements CREATE TABLE `example4` ( `example_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `field1` int(11) unsign...
<reponame>sedc-codecademy/skwd8-07-dbdevdesign select * from dbo.BusinessEntity select * from dbo.Customer select * from Employee select * from Product where Description like '%tea%' select * from dbo.[Order] select * from dbo.[OrderDetails] -- Find all different products that one employee <NAME> can order sele...
-- file:rangetypes.sql ln:52 expect:true INSERT INTO numrange_test VALUES('[,)')
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100 -- file:rolenames.sql ln:262 expect:true CREATE AGGREGATE testagg9(int2) (SFUNC = int2_sum, STYPE = int8)
<gh_stars>1-10 --Problem 9 SELECT e.EmployeeID, e.FirstName, e.ManagerID, mng.FirstName AS [ManagerName] FROM Employees AS e JOIN Employees AS mng ON mng.EmployeeID= e.ManagerID WHERE e.ManagerID IN(3, 7) ORDER BY e.EmployeeID
<filename>komga/src/flyway/resources/db/migration/h2/V20200601173217__read_progress.sql create table read_progress ( book_id bigint not null, user_id bigint not null, created_date timestamp not null default now(), last_modified_date timestamp not null default now(), ...
<filename>SQL Database/00.基本情報取得/構成.sql SELECT SERVERPROPERTY('Collation') AS Collation, CAST(DATABASEPROPERTYEX(DB_NAME(), 'MaxSizeInBytes') AS bigint) / POWER(1024,3) AS MaxSizeInGBytes, DATABASEPROPERTYEX(DB_NAME(), 'Edition') AS Edition, DATABASEPROPERTYEX(DB_NAME(), 'ServiceObjective') AS Servi...
CREATE USER 'sp'@'localhost' IDENTIFIED BY 'sp'; GRANT ALL PRIVILEGES ON simple_profile.* to 'sp'@'localhost';
{{ config( materialized='table' ) }} select user_guid, email, zipcode, state, country, order_id, created_at, order_cost, shipping_cost, order_total, order_status, total_type_of_products, total_num_of_items_per_order FROM {{ref('dim_users')...
-- -- H2 schema addition for repair on specific nodes -- ALTER TABLE repair_unit ADD blacklisted_tables ARRAY;
<filename>macros/generate_sessionization_incremental_filter.sql<gh_stars>0 {% macro generate_sessionization_incremental_filter(merge_target, filter_tstamp, max_tstamp, operator) %} {{ return(adapter.dispatch('generate_sessionization_incremental_filter', 'segment') (merge_target, filter_tstamp, max_tstamp, operator)...
<filename>test/dbtvault_test/macros/generate_schema_name.sql {% macro generate_schema_name(custom_schema_name, node) -%} {{ dbtvault_test.get_schema_name() }} {%- endmacro %} {% macro get_schema_name() -%} {{- adapter.dispatch('get_schema_name', 'dbtvault_test')() -}} {%- endmacro -%} {% macro default__get_s...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : 192.168.1.177 Source Server Type : MySQL Source Server Version : 50724 Source Host : 192.168.1.177:3306 Source Schema : MHD97 Target Server Type : MySQL Target Server Version : 50724 File Encoding : 65001 D...
<reponame>aless80/devilry-django -- Autocreate first FeedbackSet when creating an AssignmentGroup. CREATE OR REPLACE FUNCTION devilry_dbcache_on_assignmentgroup_insert() RETURNS TRIGGER AS $$ BEGIN PERFORM devilry__create_first_feedbackset_in_group(NEW.id, NEW.parentnode_id); RETURN NEW; END $$ LANGUAGE plpgsql...
set session role=usertest71; drop schema sa CASCADE;
declare Begin for nadji in (Select BROJ_DOK,vrsta_dok, GODINA,ORG_dEO,BROJ_DOK1,STATUS, DATUM_UNOSA from dokument where godina = 2013 and vrsta_Dok = '3' and datum_dok = '31.12.2013' and user_id = 'VITAL' AND TRUNC(DATUM_UNOSA)='13.01.2014' ...
<reponame>giyeon95/infra-subway-deploy create table favorite ( id bigint not null auto_increment, created_date datetime, modified_date datetime, member_id bigint, source_station_id bigint, target_station_id bigint, primary key (id) ) engine = InnoDB; create t...
<reponame>fossabot/Tsundoku create table "public"."kitsu_info" ( "show_id" smallint not null, "kitsu_id" integer, "cached_poster_url" text, "show_status" text, "slug" text, "last_updated" timestamp without time zone not null default now() ); insert into "public"."kitsu_info" ("show_id", "kitsu_...
<gh_stars>0 -- find all employees and their address. Use equijoins (conditions in the `WHERE` clause) USE TelerikAcademy SELECT e.FirstName, e.LastName, a.AddressText AS [Address] FROM Employees e, Addresses a WHERE e.AddressID = a.AddressID
<filename>prisma/migrations/20211026030141_add_new_table_coach_profile_availability/migration.sql -- CreateTable CREATE TABLE "CoachProfileAvailability" ( "id" SERIAL NOT NULL, "coachProfileId" INTEGER, "days" INTEGER[], "startTime" INTEGER NOT NULL, "endTime" INTEGER NOT NULL, "customizedWeek" ...
<reponame>martilad/MI-EDW2019 CREATE TABLE "public".activity_type( activity VARCHAR(256) ); CREATE TABLE "public".exercise( exercise VARCHAR(256) ); CREATE TABLE "public".student( student_bk BIGSERIAL , version INTEGER , from_date TIMESTAMP , to_date TIMESTAMP , id INTEGER , last_update TIMESTAMP , last_name ...
CREATE DATABASE IF NOT EXISTS tyfirc; USE tyfirc; CREATE TABLE IF NOT EXISTS users ( userid INT AUTO_INCREMENT PRIMARY KEY, username VARCHAR(255) UNIQUE NOT NULL, password VARCHAR(255) NOT NULL ); CREATE USER 'tyfirc_server' -- tyfirc-server doesn't work when connecting through uri with backtics IDENTIFIED WITH m...
USE [deadLockDb]; GO -- 1. Открыть транзакцию 2 и выполнить первый UPDATE BEGIN TRAN UPDATE table2 SET student_name = student_name + 'Transaction2' WHERE id = 1 -- 4. Выполнить второй UPDATE -> COMMIT UPDATE table1 SET student_name = student_name + 'Transaction2' WHERE id IN (1,2,3,4,5) COMMIT TRANSACTION -- О...
-- Table to facilitate rapid crossmatching of photpipe detections. -- Created to speed up crossmatching of fake sources injected into -- ATLAS images. drop table if exists `tcs_cat_ps1_ubercal_stars`; create table `tcs_cat_ps1_ubercal_stars` ( `id` bigint unsigned not null, `RA` double not null, `Dec` double not null...
CREATE TABLE [dbo].[Contract] ( [Id] BIGINT NOT NULL PRIMARY KEY IDENTITY(0,1), [Hash] VARCHAR(64) NOT NULL unique, [Script] NVARCHAR(MAX) NOT NULL, [ReturnType] VARCHAR(50) NOT NULL, [Storage] BIT NOT NULL, [Name] VARCHAR(255) NOT NULL, [CodeVersion] VARCHAR(50) NOT NULL, [Author] VAR...
<filename>test/fixtures/dialects/mysql/drop_index_with_lock.sql DROP INDEX `test` ON `table1` LOCK = DEFAULT; DROP INDEX `test` ON `table1` LOCK = NONE; DROP INDEX `test` ON `table1` LOCK = SHARED; DROP INDEX `test` ON `table1` LOCK = EXCLUSIVE; DROP INDEX `test` ON `table1` LOCK DEFAULT; DROP INDEX `test` ON `table1` ...
CREATE TABLE tb_read_later ( id SERIAL PRIMARY KEY, user_id INT NOT NULL, source_id VARCHAR(64), source_name VARCHAR(64) NOT NULL, author VARCHAR(64) NOT NULL, title VARCHAR(128) NOT NULL, description VARCHAR(512) NOT NULL, url VARCHAR(256) NOT NULL, url_to_image VARCHAR(256) NOT NUL...
create table user_schema(username int);
BEGIN; CREATE TABLE flaggedpage_pending ( fpp_page_id BIGINT NOT NULL, fpp_quality INTEGER NOT NULL, fpp_rev_id BIGINT NOT NULL, fpp_pending_since TIMESTAMPTZ NULL, PRIMARY KEY (fpp_page_id,fpp_quality) ); CREATE INDEX fpp_quality_pending ON flaggedpage_pending (fpp_quality,fpp_pending_since); COMMIT;
<filename>v3.1/Database/dbo/Tables/TElementWithReference.sql CREATE TABLE [dbo].[TElementWithReference] ( --From MergedXSDs XSD --From 'genericRailML' Namespace [TElementWithReferenceId] BIGINT NOT NULL, [Ref] NVARCHAR(MAX) NOT NULL, CONSTRAINT [PK_TElementWithReferenceId] PRIMARY KEY CLUSTERED ([TElementWi...
<reponame>navygit/ncRNA_Pipeline<gh_stars>0 -- atrib_type table INSERT INTO `attrib_type` VALUES (450,'A_homoeologue_locus','homoeologous locus in A','homoeologous locus in A'); INSERT INTO `attrib_type` VALUES (451,'B_homoeologue_locus','homoeologous locus in B','homoeologous locus in B'); INSERT INTO `attrib_type` V...
<filename>cs/rest/original/catwatch/catwatch-backend/src/main/resources/db/migration/V002__test_baseline_on_migrate.sql<gh_stars>10-100 /* When running for the first time against unversioned database containing data, the first migration V001__base_version.sql will be skipped and this one will be executed. B...
-- db_patches INSERT INTO `db_patches` VALUES ('POCOR-2392', NOW()); -- Backup table CREATE TABLE `z_2392_institution_infrastructures` LIKE `institution_infrastructures`; INSERT INTO `z_2392_institution_infrastructures` SELECT * FROM `institution_infrastructures` WHERE 1; -- Start: infrastructure_ownerships DROP TAB...
CREATE TABLE `sys_menu` ( `menu_id` int(11) NOT NULL AUTO_INCREMENT , `app_id` bigint(20) unsigned NULL DEFAULT NULL , `menu_name` varchar(128) NULL DEFAULT NULL , `title` varchar(128) NULL DEFAULT NULL , `icon` varchar(128) NULL DEFAULT NULL , `path` varchar(128) NULL DEFAULT NULL , `paths` varchar(128) NUL...
<filename>Installers/PivotedWaitStats_Test.sql SELECT TOP(0) FROM [dbo].[query_store_wait_stats_pivoted]
/* Navicat MySQL Data Transfer Source Server : 项目 Source Server Version : 50536 Source Host : 172.16.58.3:3306 Source Database : huangbo Target Server Type : MYSQL Target Server Version : 50536 File Encoding : 65001 Date: 2017-07-19 08:50:31 */ SET FOREIGN_KEY_CHECKS=0; -- ------...
<filename>ScoutingServer/src/ScoutingDatabase/dbo/Stored Procedures/Delete_District.sql CREATE PROCEDURE [dbo].[Delete_District] @Season int, @DistrictCode nvarchar(max) AS SET NOCOUNT ON; DELETE FROM [dbo].[Districts] WHERE [Season] = @Season AND [DistrictCode] = @DistrictCode RETURN 0
CREATE TABLE guilds ( guildid varchar(255), toggled varchar(255), bans varchar(255), kicks varchar(255) );
-- Mysql Backup of mdl_report -- Date 2019-05-15T15:30:37+02:00 -- Backup by
<gh_stars>0 -- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64) -- -- Host: localhost Database: delivery_eztakeout -- ------------------------------------------------------ -- Server version 8.0.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
/* SQLyog Enterprise v12.08 (64 bit) MySQL - 5.7.23 : Database - peerless ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHE...
<filename>dump.sql -- MariaDB dump 10.17 Distrib 10.4.12-MariaDB, for osx10.15 (x86_64) -- -- Host: localhost Database: ezoom -- ------------------------------------------------------ -- Server version 10.5.4-MariaDB-1:10.5.4+maria~focal /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SE...
<reponame>ZoZhang/neo_soft -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : jeu. 06 déc. 2018 à 21:10 -- Version du serveur : 10.2.11-MariaDB-log -- Version de PHP : 7.1.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET t...
<filename>5.2.3/Database/Indexes/AFW_13_PAGE_PREFR_NAVGT_FK2.sql<gh_stars>1-10 SET DEFINE OFF; CREATE INDEX AFW_13_PAGE_PREFR_NAVGT_FK2 ON AFW_13_PAGE_PREFR_NAVGT (REF_PAGE_IR) LOGGING /
-- Table: public.bsheet_facts -- DROP TABLE public.bsheet_facts; CREATE TABLE public.bsheet_facts ( demarcation_code TEXT NOT NULL REFERENCES scorecard_geography (geo_code), period_code TEXT NOT NULL, item_code TEXT REFERENCES bsheet_items (code), amount bigint, id serial, financial_year INTEGER NOT NULL,...
<filename>__tests__/fixture/postgres/usecase.sql<gh_stars>1-10 DROP TABLE if exists customers cascade; CREATE TABLE customers ( email character varying(255) NOT NULL, id bigint NOT NULL, pass_crypt character varying(255) NOT NULL, creation_time timestamp without time zone NOT NULL, display_name char...
COPY acs2011_1yr.tmp_geoheader FROM '/mnt/tmp/acs2011_1yr/g20111ak.txt' WITH ENCODING 'latin1'; COPY acs2011_1yr.tmp_geoheader FROM '/mnt/tmp/acs2011_1yr/g20111al.txt' WITH ENCODING 'latin1'; COPY acs2011_1yr.tmp_geoheader FROM '/mnt/tmp/acs2011_1yr/g20111ar.txt' WITH ENCODING 'latin1'; COPY acs2011_1yr.tmp_geoheader F...
load data local infile "data/test.sql" into table indicators columns terminated by ',' enclosed by '"' lines terminated by '\n' ignore 1 lines;
<reponame>Shuttl-Tech/antlr_psql -- file:tsearch.sql ln:452 expect:true SELECT ts_rewrite('5 <-> (6 | 8)', 'SELECT keyword, sample FROM test_tsquery'::text )
--============================================================================== -- GPI - <NAME> -- Desc: OEM SQL Script Overview -- Show the DB internal Alerting Setting + open Alerts --============================================================================== -- docu -- Database metrics, e.g.Tablespace Fu...
<filename>packages/intranet-timesheet2-invoices/sql/common/intranet-timesheet2-invoices-common.sql -- /packages/intranet-timesheet2-invoices/sql/oracle/intranet-timesheet2-invoices-create.sql -- -- Copyright (c) 2003 - 2009 ]project-open[ -- -- All rights reserved. Please check -- http://www.project-open.com/license/ f...
SELECT `group_name`, `group_display_name` FROM `{table.groups}` WHERE `group_id` = '{0}' LIMIT 1;
//PhotodynamicTherapy library PhotodynamicTherapy using FHIR version '1.8' include FHIRHelpers version '1.8' called FHIRHelpers //include otherLibrary version 'x.x' called otherLibrary //codesystem codeSystemName : 'OID' version 'x.x' //valueset valuesetName : 'OID' version 'x.x' codesystems{codeSystem1 , codeSystem2...
<gh_stars>0 insert into t_mock_user(user_name, user_password, status, user_email, nick_name) values('admin', '123456', 1, null, 'Admin');
SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS sed_people_content; SET FOREIGN_KEY_CHECKS = 1; CREATE TABLE IF NOT EXISTS sed_people_content ( people_id BIGINT, content_id BIGINT, UNIQUE (content_id), PRIMARY KEY (people_id, content_id), FOREIGN KEY (people_id) REFERENCES sed_people (id) ON ...
<reponame>goldmansachs/obevo-kata CREATE FUNCTION func375() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE258);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE146);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE39...
SELECT tr.test_name, tr.run_date, tr.build_date, tr.branch_name, tr.train_dataset_name, tr.num_train_rows, tr.num_explan_cols, tr.num_cpus, tr.mem_heap_bytes, (tp.phase_end_time - tp.start_time) / 1000 parse_time_s FROM test_run tr INNER JOIN test_run_phase_result tp ON tr.t...
<filename>driver-cql-shaded/src/test/resources/cql3_examples/dropAggregate.cql DROP AGGREGATE IF EXISTS cycling.avgState;
<filename>saldo_awal_2021/rsud/distribusi_2020/apotik_rawat_jalan.sql 3733,5500,0 2515,1200,0 2522,290,0 2524,34785,0 2525,1850,0 2531,9300,0 2534,3000,0 14885,1350,0 14921,4300,0 16582,114,0 16594,10,0 3972,50,0 575,9800,0 16399,4,0 14914,6500,0 7895,200,0 628,231,0 638,13500,0 650,336,0 664,4900,0 14522,15,0 14913,97...
alter table doc_groups add column created_by integer DEFAULT 0 NOT NULL; update doc_groups set created_by = 100;
<filename>tickets.sql -- -------------------------------------------------------- -- Host: localhost -- Versión del servidor: 5.7.24 - MySQL Community Server (GPL) -- SO del servidor: Win64 -- HeidiSQL Versión: 10.2.0.5599 -- -------------------------------------...
DROP TABLE IF EXISTS "CreditCard"; DROP TABLE IF EXISTS "Userpassword"; DROP TABLE IF EXISTS "Password"; DROP TABLE IF EXISTS "Usecase"; DROP TABLE IF EXISTS "User"; DROP TABLE IF EXISTS "Userpassword"; create table "CreditCard" ( "CreditCardNumber" varchar not null, "ExpirationDate" varchar not null, cv...
<reponame>vsolondev/ACTIS -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 30, 2018 at 11:58 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+...
create procedure Cofoundry.AuthorizedTask_Invalidate ( @UserId int, @AuthorizedTaskTypeCodes nvarchar(max), @DateTimeNow datetime2 ) as begin set nocount on; if (IsNull(@AuthorizedTaskTypeCodes, '') = '') begin update Cofoundry.AuthorizedTask set InvalidatedDate = @DateTimeNow where UserId = @User...
<filename>mysql-ddl/create_tu_back_user_token.ddl CREATE TABLE `tu_back_user_token` ( `uuid` int(11) NOT NULL AUTO_INCREMENT, `login_name` varchar(45) NOT NULL, `password` varchar(45) DEFAULT NULL, `access_token` varchar(64) DEFAULT NULL, `user_id` varchar(45) NOT NULL, PRIMARY KEY (`uuid`), KEY `idx_tu_u...
insert into TIPO_CARAMELO(c_cod,c_nombre,c_descripcion,FK_producto) values (001,'Normal','',7), (002,'Macizo','',2), (003,'Con chicle', '',6), (004,'Piruleta','',4), (005,'Bombón','',3), (006,'Gelatina','',6), (007,'Algodón de azúcar','',5), (008,'Con chocolate','',10), (009,'De fruta','',2), (010,'De regaliz...
<filename>doc/table.sql DROP TABLE IF EXISTS `t_auth`; CREATE TABLE `t_auth`( `id` BIGINT auto_increment , `user_name` VARCHAR(64) NOT NULL, `password` VARCHAR(200) NOT NULL, `slat_id` BIGINT not null, `created_at` INT NOT NULL, `updated_at` INT default 0, primary key (`id`), unique key(`user_name`...
<gh_stars>1-10 -------------------------------------------------------- -- File created - Sunday-October-20-2019 -------------------------------------------------------- Insert into CALENDAR (DATE_COL,YEAR_COL,MONTH_COL,DAY,WEEKDAY,QUARTER) values (to_date('17-FEB-15','DD-MON-RR'),2015,2,17,3,1); Insert into CALEND...
BEGIN; CREATE TABLE IF NOT EXISTS guilds ( id varchar(30), new_patron_message varchar(1000), prefixes varchar(10)[], PRIMARY KEY(id) ); CREATE TYPE role_type as ENUM ( 'normal', 'moderator', 'admin', 'patreon' ); CREATE TABLE IF NOT EXI...
INSERT INTO "Country" ("name") VALUES ('Soviet Union'), ('People''s Republic of China'), ('Vietnam'), ('Cuba'); INSERT INTO "City" ("name", "countryId") VALUES ('Beijing', 2), ('Wuhan', 2), ('Kiev', 1), ('Havana', 4), ('Hanoi', 3), ('Kaliningrad', 1);
create table esliwo.migrations ( id int unsigned auto_increment primary key, migration varchar(255) not null, batch int not null ) collate = utf8mb4_unicode_ci;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 02, 2017 at 07:54 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
<reponame>infinitenodes/project Use studentdb; LOCK TABLES `students` WRITE; INSERT INTO `students` VALUES (1, 'Andy','Nguyen',3,20,'computer information systems', 3.5),(2, 'John','Wick',2,30,'Computer Science', 3.4),(3, 'Shrek','L',1,50,'art', 4),(4, 'Waldo','Man',4,2,'Accounting', 3.5); UNLOCK TABLES;
-- Select all warehouses. select * from warehouses;
<gh_stars>0 {{ config( materialized='incremental', unique_key='event_id', partition_by={ "field": "created_on", "data_type": "date" } if target.type == 'bigquery' else none, incremental_strategy = 'merge', file_format = 'delta' ) }} with e...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50547 Source Host : localhost:3306 Source Database : restaurant Target Server Type : MYSQL Target Server Version : 50547 File Encoding : 65001 Date: 2019-05-10 15:35:14 */ SET FOREIGN_KEY_CHECKS=0; -...
{%- macro annual_price_per_seat_change(quantity, previous_quantity, arr, previous_arr) -%} ZEROIFNULL(( {{ arr }} / NULLIF({{ quantity }},0) ) - ( {{ previous_arr }} / NULLIF({{ previous_quantity }},0))) AS annual_price_per_seat_change {%- endmacro -%}
<filename>psets/pset7/movies/5.sql SELECT title,year from movies WHERE title LIKE "Harry Potter%" ORDER BY year;
/*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ ALTER TABLE BIO_PATHWAYS DROP PRIMARY KEY CASCADE / DROP TABLE BIO_PATHWAYS CASCADE CONSTRAINTS PURGE / -- -- BIO_PATHWAYS (Table) -- -- Dependencies: -- TAXON (Ta...
/* schema for allwise table. Model can be found at https://irsa.ipac.caltech.edu/data/download/wise-allwise/wise-allwise-cat-schema.txt */ CREATE TABLE catalogdb.allwise( designation char(20) , ra decimal(10,7) , dec decimal(9,7) , sigra ...
/* --------------------------------------------------------------------------------------------------------------------------------- Routine Name: testHarness.sql Author: <NAME> Date: 12/011/2018 --------------------------------------------------------------------------------------------------------------...
<reponame>arizawan/chaity.com -- MySQL dump 10.13 Distrib 5.5.44, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: c35chydb -- ------------------------------------------------------ -- Server version 5.5.44-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET...
<gh_stars>0 /* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.6.22-log : Database - aimstonal ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_...
select * from (select name from customers EXCEPT select iid from items) as t
<filename>db/table/pesan.sql /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50626 Source Host : localhost:3306 Source Schema : amolana Target Server Type : MySQL Target Server Version : 50626 File Encoding ...
DROP TABLE IF EXISTS users; CREATE TABLE users ( id BIGINT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50) UNIQUE NOT NULL, email VARCHAR(255) UNIQUE NOT NULL, role ENUM('ROLE_ADMIN', 'ROLE_USER') NOT NULL, password VARCHAR(80) NOT NULL, active BOOLEAN DEFAULT FALSE, registered DATE DEFAULT CURRENT_DATE, ...
/* SQLyog Enterprise - MySQL GUI v7.02 MySQL - 5.6.12-log : Database - thesis ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET ...
DROP DATABASE IF EXISTS ventas; CREATE DATABASE IF NOT EXISTS ventas; USE ventas; CREATE TABLE productos( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, codigo VARCHAR(255) NOT NULL, nombre TEXT(100) NOT NULL, precioVenta DECIMAL(5, 2) NOT NULL, caracteristica TEXT(100) NOT NULL, stock VARCHAR(20) NOT NULL, PRIMARY...
1.Provide a table for all web_events associated with account name of Walmart. There should be three columns. Be sure to include the primary_poc, time of the event, and the channel for each event. Additionally, you might choose to add a fourth column to assure only Walmart events were chosen. 2.Provide a table that prov...
<gh_stars>0 BEGIN TRANSACTION; DROP TABLE IF EXISTS "operations"; DROP TABLE IF EXISTS "subjects"; DROP TABLE IF EXISTS "users"; DROP TABLE IF EXISTS "domains"; DROP TABLE IF EXISTS "policies"; DROP TABLE IF EXISTS "objects"; DROP TABLE IF EXISTS "object_type"; DROP TABLE IF EXISTS "subject_domain"; DROP TABLE IF EXIST...