sql
stringlengths
6
1.05M
drop table airport1; Create TAble airport1( airport_id int primary key, airport_name varchar(100) not null, airport_country varchar(100) not null, airport_altitude int, active varchar(1) ); drop table Airport2; Create TAble Airport2( a_id int not null primary key, a_name varchar(100) not null, a_country_code varcha...
SELECT * FROM kontakty; SELECT * FROM stocks ORDER BY price; SELECT long_name_of_the_colum as col FROM kontakty; SELECT * FROM Customers WHERE CustomerName LIKE 'a%'; -- % - any character SELECT * FROM Customers WHERE CustomerName LIKE '%or%'; -- % - any character SELECT * FROM Customers WHERE CustomerName LIKE 'a_%_%...
<reponame>adan830/BillingTLBB<gh_stars>1-10 -- Copyright (c) Dark.Hades -- https://github.com/HadesD/TLBB.Billing CREATE TABLE account ( id INT(11) NOT NULL AUTO_INCREMENT, name VARCHAR(32) NOT NULL, password CHAR(32) NOT NULL, point INT(11) NOT NULL DEFAULT 0, is_online TINYINT(1) NOT NULL ...
<gh_stars>1-10 -- Deletar dados de uma tabela. DELETE FROM TABELA;
INSERT INTO `XXX_papoo_lookup_men_int` SET menuid='1200', gruppenid='1' ; ##b_dump## INSERT INTO `XXX_papoo_lookup_men_int` SET menuid='1201', gruppenid='1' ; ##b_dump## INSERT INTO `XXX_papoo_lookup_men_int` SET menuid='1202', gruppenid='1' ; ##b_dump## INSERT INTO `XXX_papoo_men_uint_language` SET lang_id='1', m...
SELECT CAST(N AS NVARCHAR(10)) + ' ' + CASE WHEN P IS NULL THEN 'Root' WHEN N IN (SELECT DISTINCT P FROM BST) THEN 'Inner' ELSE 'Leaf' END FROM BST AS b ORDER BY N
-- file:guc.sql ln:194 expect:true select current_schemas(false)
-- ------------------------------ -- Tipos de datos -- string = 1 -- integer = 10 -- numeric = 11 -- boolean = 20 -- tms = 30 -- date = 31 -- time = 32 DELETE FROM PARMS; -- ---------------------------------------------------- -- Grupo 1 - General -- Sub 1 - Configuracion -- 1 - Moneda por de...
<gh_stars>0 -- /packages/intranet-earned-value-management/sql/postgresql/intranet-earned-value-management-create.sql -- -- Copyright (c) 2010 ]project-open[ -- -- All rights including reserved. To inquire license terms please -- refer to http://www.project-open.com/modules/<module-key> -- Drop plugins and menus for ...
ALTER TABLE chat OWNER TO developers; GRANT ALL ON TABLE chat TO developers; ALTER TABLE chat_id_seq OWNER TO developers; GRANT ALL ON TABLE chat_id_seq TO developers; ALTER TABLE dueling_log OWNER TO developers; GRANT ALL ON TABLE dueling_log TO developers; ALTER TABLE dueling_log_id_seq OWNER TO developers; GRANT...
<reponame>Jenny8611/ProjetPro<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mer. 22 déc. 2021 à 14:27 -- Version du serveur : 10.4.22-MariaDB -- Version de PHP : 8.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "...
//============================================================================= // Create databases and users //============================================================================= // Create a database for each film USE ROLE SYSADMIN; CREATE DATABASE DJANGO_UNCHAINED; CREATE DATABASE WOLF_OF_WALLSTREET; // Cr...
<gh_stars>1-10 IF OBJECT_ID('finance.payable_account_selector_view') IS NOT NULL DROP VIEW finance.payable_account_selector_view; GO CREATE VIEW finance.payable_account_selector_view AS SELECT finance.account_scrud_view.account_id AS payable_account_id, finance.account_scrud_view.account_name A...
<filename>schema/1_init.up.sql -- See FlowMessage.proto for documentation. CREATE TABLE IF NOT EXISTS flows_queue ( FlowType UInt8, SequenceNum UInt64, TimeReceived UInt64, SamplingRate UInt64, FlowDirection UInt8, SamplerAddress IPv6, TimeFlowStart UInt64, ...
<gh_stars>10-100 -- Script for migration legacy device_output_setting. CREATE OR REPLACE FUNCTION migration_for_device_output_setting_device_simulator() RETURNS VARCHAR AS $BODY$ DECLARE x int[]; deviceId int; BEGIN x := array(select distinct device_id from device_output_setting order by device_id); ...
<reponame>seantanly/money_sql<gh_stars>10-100 DROP TYPE public.money_with_currency;
insert into table result select bigdatabench_dw_order.buyer_id,sum(bigdatabench_dw_item.goods_amount) as total from bigdatabench_dw_item join bigdatabench_dw_order on bigdatabench_dw_item.order_id = bigdatabench_dw_order.order_id group by bigdatabench_dw_order.buyer_id limit 10;
SET search_path = pg_catalog; CREATE TABLE public.testtable2 ( id integer, name character varying(100) NOT NULL, sequence integer DEFAULT nextval('public.testtable2_sequence_seq'::regclass) NOT NULL );
<filename>backend/dal/Migrations/v01.07.00/Up/PostUp/01-NotificationTemplates.sql<gh_stars>10-100 PRINT 'Update e-mail notification templates' -- Add SRES to BCC except for new disposal submitted as they are already included UPDATE dbo.[NotificationTemplates] SET [Bcc] = '<EMAIL>' WHERE [Id] <> 1
--To migrate an archive db running on a version before this --Creates a new table that'll be populated when the archive is run with -config-file option CREATE TABLE timing_info ( id serial PRIMARY KEY , public_key_id int NOT NULL REFERENCES public_keys(id) , token ...
DELETE FROM resource_config_versions WHERE check_order = 0;
alter table qtopology_topology add column pid int; alter table qtopology_topology_history add column pid int; drop procedure if exists qtopology_sp_add_topology_history; create procedure qtopology_sp_add_topology_history(p_uuid varchar(100)) begin insert into qtopology_topology_history(ts, uuid, status, wor...
DROP INDEX IF EXISTS edit_open_time_date; DROP INDEX IF EXISTS edit_close_time_date; DROP INDEX IF EXISTS edit_expire_time_date; DROP INDEX IF EXISTS edit_idx_open_edits_open_time; ANALYZE edit;
<filename>persistence/schema-migrations/1.sql /* Schema of version 1 */ /* Scores table */ create table "scores" ( "id" serial not null primary key, "username" text not null unique, "score" integer default 0, "game_level" integer default 1 );
BEGIN TRANSACTION; ALTER TABLE "votes" ADD "normalUserID" TEXT NOT NULL default ''; UPDATE "config" SET value = 7 WHERE key = 'version'; COMMIT;
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 21-10-2019 a las 10:48:45 -- Versión del servidor: 5.6.24 -- Versión de PHP: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
<filename>db/views.sql CREATE VIEW employee_main AS SELECT e.id, CONCAT(e.first_name, ' ', e.last_name) AS "Full Name", r.name AS "Role", r.salary AS "Salary", d.name AS "Department", CASE WHEN e2.first_name IS NULL THEN 'None' ELSE e2.first_name || ' ' || e2.last_name END ...
UPDATE Users SET user_role = :user_role WHERE username = :user;
INSERT INTO types (type, created, modified) VALUES ('Pistol', NOW(), NOW()), ('Revolver', NOW(), NOW()), ('Rifle', NOW(), NOW()), ('Shotgun', NOW(), NOW()), ('Frame', NOW(), NOW()), ('Receiver', NOW(), NOW()), ('Other', NOW(), NOW()); INSERT INTO calibers (caliber, created, modified) VALUES ('.223 Remington', NOW(), N...
-- find the names of all employees whose last name is exactly 5 characters long. Use the built-in LEN(str) function. USE TelerikAcademy SELECT e.FirstName + ' ' + e.LastName AS [Employee] FROM Employees e WHERE LEN(e.LastName) = 5
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 08-10-2019 a las 12:12:55 -- Versión del servidor: 5.7.27-0ubuntu0.16.04.1 -- Versión de PHP: 7.1.32-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; STA...
<reponame>wsczd11/Reusability-Share-Save<gh_stars>0 insert into business (business_type, created, description, name, primary_administrator_id, address_id, currency_symbol, currency_code) values ('CHARITABLE_ORGANISATION', '2020-07-11 02:54:20', null, 'Rowe Inc', 1, 10001, '$', 'COP'); insert into business (business_typ...
@apxxepwd.sql Oracle1! ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK; ALTER USER APEX_PUBLIC_USER IDENTIFIED BY "oracle"; @apex_rest_config_core.sql oracle oracle exit;
-- Adminer 4.2.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `migrations`; CREATE TABLE `migrations` ( `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARS...
-- Your SQL goes here create schema moment_service; create schema moment_service_api; create schema catarse;
select count(*) as ct from store_sales JOIN household_demographics ON store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk JOIN time_dim ON store_sales.ss_sold_time_sk = time_dim.t_time_sk JOIN store ON store_sales.ss_store_sk = store.s_store_sk where time_dim.t_hour = 8 and time_dim.t_mi...
CREATE TABLE user ( id int unsigned NOT NULL AUTO_INCREMENT, first_name varchar(50) NOT NULL, last_name varchar(50) NOT NULL, email varchar(255) NOT NULL , screen_name varchar(255) NOT NULL, portrait_url varchar(255), business_title varchar(255), about_me text, street varchar(100), ...
CREATE TABLE newsletter_type ( shortname text PRIMARY KEY, name text NOT NULL DEFAULT '', description text NOT NULL DEFAULT '' ); INSERT INTO newsletter_type ("shortname", "name") VALUES -- 1 ('investigator', 'The Investigator'), -- 2 ('papost', 'PA Post'); CREATE TABLE newsletter ( subject ...
<filename>db/sql/4914__drop_create_table_vipunentk_dw__sa_K3_10_Tutk_suor_osuus_aloittaneista_korkeakoulut_surrogaattiavaimet.sql use VipunenTK_DW go DROP TABLE VipunenTK_DW.dbo._sa_K3_10_Tutk_suor_osuus_aloittaneista_korkeakoulut_surrogaattiavaimet Select top 0 * into VipunenTK_DW.dbo._sa_K3_10_Tutk_suor_osuus_aloit...
<reponame>gintsmurans/sla CREATE TABLE "sessions" ( "id" varchar(120) NOT NULL DEFAULT ''::character varying, "data" text NOT NULL, "expires" int8 NOT NULL ) WITH (OIDS=FALSE); ALTER TABLE "sessions" ADD CONSTRAINT "sessions_pkey" PRIMARY KEY ("id") NOT DEFERRABLE INITIALLY IMMEDIATE; CREATE INDEX "sessions_id" ON...
alter table "public"."cases" alter column "jurisdiction_state" set not null;
-- 2022-04-15T08:51:29.428Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_RelationType WHERE AD_RelationType_ID=540101 ; delete from ad_pinstance_log where ad_pinstance_id in (select ad_pinstance_id from ad_pinstance where ad_scheduler_id=550015); delete from ad_pinstance_para where ...
<gh_stars>0 CREATE TABLE IF NOT EXISTS public.nonuk_address_lookup_status ( host_schema VARCHAR NOT NULL PRIMARY KEY, status VARCHAR NOT NULL, error_message VARCHAR NULL, timestamp TIMESTAMP NOT NULL ); GRANT SELECT ON public.nonuk_address_lookup_status TO addresslookupreader;
<filename>document/sql/mall.sql /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50719 Source Host : localhost:3306 Source Database : mall Target Server Type : MYSQL Target Server Version : 50719 File Encoding : 65001 Date: 2020-08-24 13:48:26 */ SE...
<reponame>yisen-cai/dubbo-project DROP TABLE IF EXISTS user; CREATE TABLE user ( id BIGINT PRIMARY KEY AUTO_INCREMENT comment '主键', avatar VARCHAR(100) NOT NULL DEFAULT '' comment '用户头像', username VARCHAR(20) NOT NULL comment '用户名', nickname VARCHAR(20) NOT NULL comment '用户昵称'...
<gh_stars>10-100 define mw_prefix='{$wgDBprefix}'; ALTER TABLE &mw_prefix.categorylinks MODIFY cl_sortkey_prefix DEFAULT NULL NULL; ALTER TABLE &mw_prefix.categorylinks MODIFY cl_collation DEFAULT NULL NULL; ALTER TABLE &mw_prefix.iwlinks MODIFY iwl_prefix DEFAULT NULL NULL; ALTER TABLE &mw_prefix.iwlinks MODIFY iwl_t...
<gh_stars>10-100 -- Treat as one-off (manually) as this is just test data -- -- export PGPASSWORD=$<PASSWORD>_PASSWORD -- -- psql -h $DATABASE_SERVICE_NAME -d $DATABASE_NAME -U $DATABASE_USER -f populate-registries-from-xform.sql -- Companies from Driller Registry (271 / 272) \echo 'Inserting Companies from Driller Re...
<filename>VMBackup/main/workloadPatch/DefaultScripts/postMysqlSlave.sql START SLAVE;SELECT SLEEP(5); SET GLOBAL read_only = OFF; UNLOCK TABLES;
create table trace_group ( group_id int not null generated by default as identity, creator VARCHAR(30) NOT NULL, created TIMESTAMP NOT NULL, desc varchar(1024), primary key (group_id)); create table trace_set ( trace_set_id int not null generated by default as identity, group_id int not null, node_count...
<reponame>SKalt/pg_sql_parser_tests #include "postgres.h" #include "fmgr.h" #include "executor/spi.h" /* this is what you need to work with SPI */ #include "commands/trigger.h" /* ... triggers ... */ #include "utils/rel.h" /* ... and relations */ PG_MODULE_MAGIC; PG_FUNCTION_INFO_V1(trigf); Datum tr...
<reponame>UMassMedIT/ProfilesRNS SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [Profile.Import].[Beta.Award]( [AwardID] [int] NOT NULL, [PersonID] [int] NULL, [Yr] [int] NULL, [Yr2] [int] NULL, [AwardNM] [varchar](100) NULL, [AwardingInst] [varchar](100) NULL, PRIMARY KEY CL...
/* Class title: Database-I Lecturer: Prof. Dr. <NAME> Example adapted by: <NAME> Date: January 20, 2021 */ create database mecanicaAutomoveis_2; use mecanicaAutomoveis_2; create table pessoa ( codigo int not null, nome varchar(60) not null, cpf varchar(14) not null, endereco varchar(255) not null, c...
<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) -- -- Database: govwifi_test -- ------------------------------------------------------ -- Server version 5.7.16-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /...
DROP TABLE IF EXISTS `tbl_client_request`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tbl_client_read_request` ( `int_request_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `int_p2p_layer_id` int(10) unsigned NOT NULL, `var_request` v...
CREATE TABLE IF NOT EXISTS `user_event_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `event_log` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `event_data` varchar(255) COLLATE utf8_unicode_ci NULL, `created_at` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSE...
<reponame>jinjiaho/project57 -- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: localhost Database: Ascott_InvMgmt -- ------------------------------------------------------ -- Server version 5.7.18 CREATE DATABASE IF NOT EXISTS `Ascott_InvMgmt` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `...
<gh_stars>0 /* <NAME> - STATS OFF - HASH DATA DIST DW1500: COPY: DEDUPE+FINAL INSERT: ======== TOTAL: */ drop table lineitems_tmp_hash; drop table lineitems_final_hash_ctas; drop table lineitems_final_hash_ctas_orig; drop table lineitems_final_hash_ctas_keboola; drop table lineitems_final_has...
-- Autogenerated file with FlightRadar24 data SET search_path TO cc,public; INSERT INTO radar_data(coordinates, source, captured, data) VALUES ('POINT(46.285622 48.003578 0.000000)', '294ртр', '2020-07-30 16:03:08', 'SBI2162'); INSERT INTO radar_data(coordinates, source, captured, data) VALUES ('POINT(46.285831 48.003...
<reponame>praktekcoba049/ecommercetry -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.17.32 -- Generation Time: Feb 01, 2022 at 04:11 PM -- Server version: 10.4.22-MariaDB -- PHP Version: 8.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00...
ALTER TABLE lookup ADD COLUMN parentid INTEGER;
/* Warnings: - You are about to drop the column `categoryId` on the `questions` table. All the data in the column will be lost. - The migration will add a unique constraint covering the columns `[name]` on the table `categories`. If there are existing duplicate values, the migration will fail. */ -- DropForeign...
-- Trigger: insert_country_row -- DROP TRIGGER insert_country_row ON bloomapp.launch; CREATE TRIGGER insert_country_row BEFORE INSERT ON bloomapp.launch FOR EACH ROW EXECUTE PROCEDURE public.insert_ip_country_bloom_fctn();
<gh_stars>1-10 PRAGMA foreign_keys = ON; CREATE TABLE IF NOT EXISTS `tabSettings` ( `version` TEXT NOT NULL ); CREATE TABLE IF NOT EXISTS `tabProxies` ( `host` TEXT NOT NULL, `port` INTEGER NOT NULL, `secure` INTEGER NOT ...
-- file:domain.sql ln:212 expect:true SELECT cast(cast(NULL as dnull) as dnotnull)
CREATE TABLE VALID_IACUC_PROTO_ACT_CORESP ( VALID_IACUC_PROT_ACT_CORSP_ID NUMBER(12,0) NOT NULL, PROTOCOL_ACTION_TYPE_CODE VARCHAR2(3) NOT NULL, PROTO_CORRESP_TYPE_CODE VARCHAR2(3) NOT NULL, UPDATE_TIMESTAMP DATE NOT NULL, UPDATE_USER VARCHAR2(60) NOT NULL, FINAL_FLAG VARCHAR2(1), VER...
USE rml; DROP TABLE IF EXISTS rml.persons; CREATE TABLE persons (fname VARCHAR(200), lname VARCHAR(200), amount INTEGER); INSERT INTO persons values ('Bob','Smith',30); INSERT INTO persons values ('Sue','Jones',20); INSERT INTO persons values ('Bob','Smith',30); DROP TABLE IF EXISTS rml.lives; CREATE TABLE lives (fname...
/****** Object: StoredProcedure [dbo].[Pr_Clinical_GetPatientSearchresults] Script Date: 8/27/2018 11:34:40 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <<NAME>> -- Create date: <08-08-2014,> -- Description: <Modified Find Patient> ...
select p.name as "Pod Name", pm.container_name as "Container Name", pvc.name as "PVC Name", pv.name as "PV Name", inet_ntoa(n.ip_addr) as "Volume IP Address", n.path as "Mount Path" from pod p, pod_mount pm, pvc, pv, nfs n where p.uid = pm.pod_uid and pm.pvc_uid = pvc.uid and pvc.pv_uid=pv.uid and pv.nfs_id = n.i...
PRAGMA foreign_keys = ON; drop table if exists questionary; drop table if exists question; create table questionary ( id integer primary key autoincrement, name text not null, xAxis text not null, yAxis text not null, maxX float not null, maxY float not null ); create table question ( fk_id integer not null, q...
-- Trigger function that will, at the database level, prevent -- anyone changing the boardinghouse_schema.schema value for -- a saved schema. CREATE OR REPLACE FUNCTION reject_schema_column_change() RETURNS TRIGGER AS $$ BEGIN RAISE EXCEPTION 'Schema cannot be renamed' USING HINT = OLD.schema; END; $$ LANGUAGE...
/* Current User Account Privileges */ SELECT PRIVILEGE, ADMIN_OPTION FROM USER_SYS_PRIVS ORDER BY PRIVILEGE; -- DBA_SYS_PRIBS will provide informations for other users
<filename>project/sql/jiajiale_orderinfo.sql<gh_stars>0 INSERT INTO `jiajiale_orderinfo` VALUES ('1586325075', '河南省信阳市商城县李集乡 hzy (收) 18866668888', 2, 4, 948.00, 0.00, 1, '', '2020-4-8 12:35:58', '2020-4-8 12:35:58', 0, 2); INSERT INTO `jiajiale_orderinfo` VALUES ('1586327405', '河南省信阳市商城县李集乡 hzy (收) 18866668888', ...
<filename>database/Dump20160606/yuva_State.sql -- MySQL dump 10.13 Distrib 5.7.9, for linux-glibc2.5 (x86_64) -- -- Host: localhost Database: yuva -- ------------------------------------------------------ -- Server version 5.5.47-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
CREATE TABLE public.audit_log ( id uuid, previous_state text, next_state text, changed_by text, log_time timestamp )
<reponame>TeknikhogskolanGothenburg/WCFMorgan /* Post-Deployment Script Template -------------------------------------------------------------------------------------- This file contains SQL statements that will be appended to the build script. Use SQLCMD syntax to include a file in the post-deployment scri...
CREATE TABLE "events" ( id serial PRIMARY KEY, name VARCHAR (255) NOT NULL, active BOOLEAN NOT NULL ); INSERT INTO "events" (name, active) values ('Txalaparta', true), ('Kalejira', false);
<gh_stars>1-10 DROP VIEW IF EXISTS ods."vwDataPipeLineTask"; CREATE OR REPLACE VIEW ods."vwDataPipeLineTask" AS SELECT DPL."DataPipeLineTaskId" ,DPL."TaskName" as "DataPipeLineTask" ,DPL."SourceEntity" ,DPL."ParentTaskId" ,DPL."RunSequence" ,DPL."OnErrorGotoNext" ,"Task...
<filename>db/watchlistSEED.sql USE watchlist_db; INSERT INTO `watchlist_db`.`Watchlists` (`ticker`, `createdAt`, `updatedAt`, `GroupId`) VALUES ('AAPL', '2016-01-10 14:37:44', '2016-01-10 14:37:44', '2'), ('MSFT', '2016-01-10 14:37:44', '2016-01-10 14:37:44', '2'), ('IBM', '2016-01-10 14:37:44', '2016-01-10 14:37:44', ...
<reponame>BloomBooks/analytics-postgres UPDATE bloomapp.upload_book_success SET context_library_name = context_library_name||' via Mixpanel' WHERE timestamp < '2017-07-26 19:00:24.774+00'; SELECT * from bloomapp.upload_book_success AS a ORDER BY a.timestamp DESC; SELECT REPLACE(a.context_library_name,...
drop table delivery; drop table product;
<filename>test/stubs/build_story_classify.sql SELECT count(*) FROM hn_ranker.build_stories_classify(200,'debug') UNION ALL SELECT count(distinct story_id) FROM hn_ranker.run_story WHERE run_id<=200;
<reponame>robert0714/PostgreSQL-10-High-Performance<gh_stars>10-100 ----------------- Reloading the configuration file ----------------- SELECT usagecount,count(*),isdirty FROM pg_buffercache GROUP BY isdirty,usagecount ORDER BY isdirty,usagecount; usagecount | count | isdirty ------------+-------+-------...
-- https://www.hackerrank.com/challenges/salary-of-employees/problem SELECT NAME FROM EMPLOYEE WHERE SALARY>2000 AND MONTHS<10 ORDER BY EMPLOYEE_ID
<filename>PIT/modules/pit_mail/messages/AMERICAN/MessageGroup_MAIL.sql begin pit_admin.merge_message_group( p_pmg_name => 'MAIL', p_pmg_description => 'Messages for MAIL package'); pit_admin.merge_message( p_pms_name => 'MAIL_PKG_NOT_WORKING', p_pms_pmg_name => 'MAIL', p_pms_text => q'^Error w...
<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 9.5.0 -- Dumped by pg_dump version 9.5.0 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET row_secu...
select count(*) num_points from groundwater_statistical_daily_value where time_series_unique_id = ?
-- Create a table CREATE TABLE Person ( SSN CHAR(9) NOT NULL, Name VARCHAR(64) NOT NULL, PhoneNumber INT, Address VARCHAR(64), ); -- Create another table that references values in Person -- Used in database normalization CREATE TABLE GuestList ( Id VARCHAR(10) NOT NULL, Guest CHAR(9) REFERENCES...
drop table if exists BookEntry; CREATE TABLE BookEntry ( BookEntryID INT PRIMARY KEY, ASIN NCHAR (10) NULL, Title NVARCHAR (1024) NULL, SoldBooks INT NOT NULL, KOLLBooks INT NOT NULL, Royalty REAL NOT NULL, KOLLShare ...
<reponame>GitHubzcc/ifast<filename>ifast.sql /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50719 Source Host : localhost Source Database : ifast Target Server Type : MySQL Target Server Version : 50719 File Encoding...
DROP TABLE wellboreSpain; DROP TABLE wellboreFinland; DROP TABLE namesMap;
select id , timestamp_columns , nil_timestamp_columns FROM goma_date_types WHERE id = :id
USE ${hiveconf:my.schema}; DROP TABLE IF EXISTS mcomplextypes; create table mcomplextypes ( simple_int int, max_nested_array array<array<array<array<array<array<array<array<array<array<array<array<array<array<array<array<array<array<array<array<array<array<array<int>>>>>>>>>>>>>>>>>>>>>>>, max_nested_map array<arr...
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; -- Hackers Against Humanity: -- first black card: -- last black card: CREATE TABLE black_cards (id integer, draw integer not null, pick integer not null, text varchar, watermark varchar, primary key (id)); INSERT INTO black_cards VALUES(1,0,1,'Here is the church Here is t...
<filename>openGaussBase/testcase/KEYWORDS/join/Opengauss_Function_Keyword_Join_Case0025.sql -- @testpoint:opengauss关键字join(保留),作为角色名 --关键字不带引号-合理报错 drop role if exists join; create role join with password '<PASSWORD>' valid until '2020-12-31'; --关键字带双引号-成功 drop role if exists "join"; create role "join" with password...
INSERT INTO Todos (Content) VALUES ('One'); -- activate the field Default -- WAIT a few seconds -- INSERT INTO Todos (Content) VALUES ('Two'); -- same thing but with INSERT INTO Todos (Content) VALUES ('Thr'); -- later time values UPDATE Todos SET Con...
WITH applications AS ( SELECT * , CASE WHEN DAYOFWEEK(created_at) = 6 THEN DATEADD(hour, '{{ var("biz_start_hour") }}', DATEADD(day, 2, created_at)::date) WHEN DAYOFWEEK(created_at) = 7 THEN DATEADD(hour, '{{ var("biz_start_hour") }}', DATEADD(day, 1, c...
SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row...
<gh_stars>0 ALTER TABLE [dbo].[CaseStudies] ADD CONSTRAINT [DF_CaseStudies_LastUpdate] DEFAULT (getdate()) FOR [LastUpdate];
<reponame>farhanth/silabti<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 21, 2020 at 12:59 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
-- MySQL dump 10.13 Distrib 5.5.53, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: varcv -- ------------------------------------------------------ -- Server version 5.5.53-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHA...