sql
stringlengths
6
1.05M
CREATE OR REPLACE VIEW v_best_worst_day_strategy AS SELECT bwd.symbol, bwd.wd_day_of_week AS buy_date, bwd.bd_day_of_week AS sell_date FROM best_worst_day bwd --WHERE bd_rising_weeks > 0.5;
<gh_stars>10-100 select way,highway,bicycle from &prefix;_line where highway in ('pedestrian','footway','track','path','steps') order by z_order,way_area desc
SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS changes; CREATE TABLE changes ( id INT NOT NULL AUTO_INCREMENT, entity VARCHAR(32) NOT NULL, changetype INT NOT NULL, -- ADDED=0, UPDATED=1, DELETED=2 rowid INT NOT NULL, PRIMARY KEY (id) ); -- базовый объект для всех информационных объектов DROP TABLE IF EXIST...
CREATE TEMPORARY TABLE dfs.tmp.tmp_tbl_4drp_c AS SELECT * FROM typeall_l; DROP TABLE dfs.tmp.tmp_tbl_4drp_c; CREATE TEMPORARY TABLE dfs.tmp.tmp_tbl_4drp_c AS SELECT * FROM typeall_l; SELECT COUNT(*) FROM dfs.tmp.tmp_tbl_4drp_c; DROP TABLE dfs.tmp.tmp_tbl_4drp_c;
<filename>examples/testssys/protected/data/schema.mysql.sql create database if not exists testssys; use testssys; drop table if exists user; CREATE TABLE if not exists user ( `id` int not null auto_increment, `email` varchar(128) unique, `provider` varchar(30) comment 'oauth提供者,比如weibo,taobao', `openid` int com...
UPDATE mysql_database_instance SET log_slave_updates=0;
<gh_stars>10-100 -- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. ALTER TABLE dbo.AuthorizationStra...
select title, akas from gcp.gcp_kms_key_ring where name = '{{ resourceName }}'
<reponame>Melegaro-SENAI/S2019-T2-1-Api<filename>T_LucasMelegaro_02_DML.sql -- Inicio DML USE T_People; INSERT INTO Funcionarios(IdFuncionarios, Nome, Sobrenome) VALUES ('1','Catarina','Strada') INSERT INTO Funcionarios(IdFuncionarios, Nome, Sobrenome) VALUES ('2','Tadeu','Vitelli') -- Fim DML
<reponame>Paolapps/stats -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 21, 2017 at 12:08 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
select nome from funcionario f, departamento d where f.codigo = d.gerente and f.salario > (select salario from departamento d)
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 07, 2022 at 01:20 PM -- Server version: 5.7.35 -- PHP Version: 8.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 02, 2019 at 03:32 PM -- Server version: 5.7.26 -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
<filename>CREATE EVENT SESSION Wait Statistics.sql CREATE EVENT SESSION [Wait Statistics] ON SERVER ADD EVENT sqlos.wait_completed(SET collect_wait_resource=(1) ACTION(sqlserver.database_id,sqlserver.database_name,sqlserver.is_system,sqlserver.session_id) WHERE (([sqlserver].[database_id]>(5)) AND ([sqlserver]...
<gh_stars>0 with cte_Path(ID, Name , lvl , Path) as (select ID, Name , 1 lvl , CONVERT(varchar(max) , name) Path from Geo where ParentID is null union all select Geo.ID , Geo.Name , lvl +1 , Path + '/' + Geo.Name from Geo inner join cte_Path on Geo.ParentID = cte_Path.ID) select * from cte_Path
-- Code is reviewed and is in working condition -- Create Master Key CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<PASSWORD>'; GO -- Create database scoped credentials CREATE DATABASE SCOPED CREDENTIAL toystore_creds1 WITH IDENTITY = 'sqadmin', SECRET = 'Pack<PASSWORD>' GO -- Create external data source CREAT...
<reponame>ahughes117/mi6 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; DROP SCHEMA IF EXISTS `mi6` ; CREATE SCHEMA IF NOT EXISTS `mi6` DEFAULT CHARACTER SET utf8 ...
<reponame>lexvieira/Docker-Sql-Server PRINT 'Restoring AdventureWorks2017....' RESTORE DATABASE AdventureWorks2017 FROM DISK='/var/opt/mssql/data/restore/AdventureWorks2017.bak' WITH MOVE 'AdventureWorks2017' TO '/var/opt/mssql/data/AdventureWorks2017.MDF', MOVE 'AdventureWorks2017_log' TO '/var/opt...
-- run first USE bamazon; -- grabs all the products select * from products; -- grabs all the departments select * from departments; -- // departments db departments db departments db products db over_head_costs - products sales -- // | department_id | department_name | over_head_costs | product_s...
<reponame>kuznetsovin/simple-tracking drop extension if exists postgis
--liquibase formatted sql --This is for the sparrow_dss schema --logicalFilePath: changeLog10DeleteColumnCumCatchAreaSparrowDss.sql --changeset lmurphy:deletecolumna CREATE OR REPLACE FORCE VIEW SPARROW_DSS.MODEL_ATTRIB_VW ( SPARROW_MODEL_ID, MODEL_REACH_ID, IDENTIFIER, FULL_IDENTIFIER, HYDSEQ, ...
CREATE TABLE Switch.MemoryUsage( InstanceID INT NOT NULL, SnapshotDate DATETIME2(2), MemoryClerkTypeID INT NOT NULL, pages_kb BIGINT NOT NULL, virtual_memory_reserved_kb BIGINT NOT NULL, virtual_memory_committed_kb BIGINT NOT NULL, awe_allocated_kb BIGINT NOT NULL, shared_memory_reserved_kb BIGI...
-- Drops the existing database DROP DATABASE IF EXISTS employeeTracker_db; -- Then, creates the database called 'employeeTracker_db' CREATE DATABASE employeeTracker_db; -- Initializes the database USE employeeTracker_db; -- Department table consists of id and department name CREATE TABLE department ( id INT AUTO_...
<gh_stars>0 INSERT INTO departments (name) VALUES ('Sales'); INSERT INTO departments (name) VALUES ('Engineering'); INSERT INTO departments (name) VALUES ('Finance'); INSERT INTO departments (name) VALUES ('Legal');
<filename>evo-X-Scriptdev2/sql/Updates/0.0.2/r516_mangos.sql UPDATE `creature_template` SET `ScriptName`='npc_neeru_fireblade' WHERE `entry`=3216; UPDATE `creature_template` SET `ScriptName`='npc_shenthul' WHERE `entry`=3401; UPDATE `creature_template` SET `ScriptName`='npc_thrall_warchief' WHERE `entry`=4949;
<filename>create.sql CREATE DATABASE routing; \c routing; CREATE TABLE student ( name varchar, cohort varchar );
-- Exercises some changes in the database create table TEST1 (i1 int, i2 int) go insert into TEST1 (i1, i2) values (1,2) go drop table TEST2 go delete from TEST3 go
<reponame>cdanielw/repository-message-broker<filename>repository-message-broker-core/src/test/resources/reset.sql DELETE FROM message_processing; DELETE FROM message;
<filename>IQ.Schemas.Test/SqlTest/Tables/Table07.sql CREATE TABLE SqlTest.[Table07] ( Col01 int identity(1,1) not null, Col02 nvarchar(50) not null, Col03 nvarchar(150) not null constraint PK_Table07 primary key (Col01) )
<gh_stars>0 -- +++ -- parent: 1528395910 -- +++ BEGIN; ALTER TABLE IF EXISTS batch_spec_workspace_execution_jobs ADD COLUMN IF NOT EXISTS access_token_id bigint REFERENCES access_tokens(id) ON DELETE SET NULL DEFERRABLE DEFAULT NULL; ALTER TABLE IF EXISTS access_tokens ADD COLUMN IF NOT EXISTS internal boolean D...
-- VFS create table o_vfs_statistics ( id bigint not null auto_increment, creationdate datetime not null, f_files_amount bigint default 0, f_files_size bigint default 0, f_trash_amount bigint default 0, f_trash_size bigint default 0, f_revisions_amount bigint default 0, f_revisions_size bigint d...
<gh_stars>1-10 /****** Object: UserDefinedFunction [dbo].[GetExistingJobsMatchingJobRequest] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION [dbo].[GetExistingJobsMatchingJobRequest] /**************************************************** ** ** Desc: ** Builds delimited list of...
<gh_stars>0 SELECT c1.`charactername`, ' => ', c2.`charactername`, ' $', w.`amount`, ' at ', w.`time`, ' reason: ',w.`reason` FROM `wiretransfers` w LEFT JOIN `characters` c1 on c1.`id` = w.`from` LEFT JOIN `characters` c2 on c2.`id`=w.`to` WHERE c1.`account` = c2.`account` ORDER BY `time` DESC
<gh_stars>1-10 -- Start add serveradmin SET IDENTITY_INSERT [dbo].[Users] ON GO INSERT INTO [dbo].[Users] (UserID ,[OwnerID] ,[RoleID] ,[StatusID] ,[IsDemo] ,[IsPeer] ,[Username] ,[Password] ,[FirstName] ...
<gh_stars>1-10 select datetimetz'10/15/1986 5:45:15.135 am +02:30:20'; select datetimetz'10/15/1986 5:45:15.135 am +02:30'; select datetimetz'10/15/1986 5:45:15.135 am +02'; select datetime with time zone'10/15/1986 5:45:15.135 am +02'; select datetimeltz'10/15/1986 5:45:15.135 am +02:00'; select datetime with l...
DO $$ -- Filename goes here DECLARE v_script_name VARCHAR := 'YYYYMMDD_HHMM_change.sql'; BEGIN -- IF NOT EXISTS (SELECT FROM _provision WHERE script_name = v_script_name) THEN -- Changes go here INSERT INTO _provision(script_name) VALUES(v_script_name); END IF; -- END; $$ LANGUAGE plpgsql;
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 02, 2018 at 04:48 PM -- 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...
-- Your SQL goes here Create Table streams( pda_account Varchar PRIMARY KEY, start_time BIGINT NOT NUll, end_time BIGINT NOT NUll, receiver Varchar Not NUll, lamports_withdrawn BIGINT NOT NUll, amount_second BIGINT NOT NUll, sender Varchar Not NUll, total_amount BIGINT NOT NUll )
update eg_wf_matrix set validactions ='Forward' where additionalrule ='EXEMPTION' and currentstate='Exemption:NEW'; update eg_wf_matrix set validactions ='Forward' where additionalrule ='DEMOLITION' and currentstate='Demolition:NEW';
<filename>PeopleNames.sql -- 4949 different names for testing CREATE TABLE #Names (id smallint identity(1,1) PRIMARY KEY, name varchar(16)) INSERT INTO #Names VALUES('Aaren') INSERT INTO #Names VALUES('Aarika') INSERT INTO #Names VALUES('Abagael') INSERT INTO #Names VALUES('Abagail') INSERT INTO #Names VALUES('Abbe...
INSERT INTO wishers (name, password) VALUES ('Tom', '<PASSWORD>'); INSERT INTO wishers (name, password) VALUES ('Jerry', '<PASSWORD>');
<reponame>shubhamxy/reisetra -- AlterTable ALTER TABLE "File" ADD COLUMN "storyId" TEXT; -- AlterTable ALTER TABLE "Product" ALTER COLUMN "faqs" SET DEFAULT E'[]'; -- CreateTable CREATE TABLE "Story" ( "id" TEXT NOT NULL, "title" TEXT NOT NULL, "description" TEXT, "body" JSONB NOT NULL DEFAULT E'[...
<reponame>Shuttl-Tech/antlr_psql -- file:alter_table.sql ln:2337 expect:true ALTER TABLE list_parted2 DROP COLUMN b
-- Fix spell cost for all Rogue spells. UPDATE `npc_trainer` SET `spellcost`=390 WHERE `spell`=8676; -- Ambush UPDATE `npc_trainer` SET `spellcost`=2784 WHERE `spell`=53; -- Backstab UPDATE `npc_trainer` SET `spellcost`=10500 WHERE `spell`=2094; -- Blind UPDATE `npc_trainer` SET `spellcost`=6000 WHERE `spel...
SELECT TOP 40 Name, Height, ClimbingStatus, FirstAscentYear FROM Peak LEFT JOIN Expedition ON PeakID = Peak.ID GROUP BY Name, Height, ClimbingStatus, FirstAscentYear ORDER BY MAX(StartDate) DESC; -- Makalu 8485 1 1955 2019-05-27 -- Everest 8850 1 1953 2019-05-19 -- Lhotse 8516 1 1956 2019-05-19 -- Chamlang 7321 1 1962...
<filename>gh-1609/src/main/resources/data.sql insert into users (id, name, guid) values (1, 'User1', null);
<reponame>Gopinath001/Rinku-Backend CREATE TABLE `user_details` ( `user_id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_name` varchar(64) NOT NULL, `user_password` varchar(255) NOT NULL, `email_id` varchar(64) NOT NULL, `email_id_status` enum('Y,N') NOT NULL, `status` enum('Y,N') NOT NULL, `time_zone` ...
<reponame>luolxb/tracker-server create table t_utilization ( id BIGINT(19) auto_increment primary key, dept_id BIGINT(19) null, time VARCHAR(20) null comment '日期', utilization DOUBLE(100, 2) null comment '使用率' ) collate = utf8mb4_unicode_ci; INSERT INTO cyoubike.t...
create table address ( id bigint auto_increment primary key, city varchar(255) null, country varchar(255) null, first_name varchar(255) null, flat varchar(255) null, house varchar(255) null, last_name varchar(255) null, postal_code varchar(255) null, state varchar(255) null, street varchar(255) ...
<reponame>TruemenHale/Charman<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2015-10-10 11:36:03 -- 服务器版本: 5.5.37-0ubuntu0.12.04.1 -- PHP Version: 5.5.15RC1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
<filename>dip_db.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Дек 16 2017 г., 18:37 -- Версия сервера: 5.7.14 -- Версия PHP: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<filename>migrations/2020-10-21-064644_create_donation_crypto_addresses/down.sql<gh_stars>0 -- This file should undo anything in `up.sql` DROP INDEX index_donation_crypto_addresses_on_code; DROP INDEX index_donation_crypto_addresses_on_name; DROP TABLE donation_crypto_addresses;
-- -- PostgreSQL database dump -- -- Dumped from database version 12.4 -- Dumped by pg_dump version 12.4 -- Started on 2020-09-14 08:33:57 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_catalo...
ALTER TABLE producer DROP COLUMN "contact", DROP COLUMN "location";
<reponame>garygriswold/Bible.js DROP TABLE IF EXISTS Bible; CREATE TABLE Bible( bibleId TEXT NOT NULL PRIMARY KEY, abbr TEXT NOT NULL, iso3 TEXT NOT NULL REFERENCES Language(iso3), versionPriority INT NOT NULL, name TEXT NULL, englishName TEXT NOT NULL, localizedName TEXT NULL, textBucket TEXT NOT NULL,...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 17, 2018 at 04:48 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- subselect.test -- -- execsql { -- SELECT 1 IN (SELECT a FROM t1 ORDER BY a); -- } SELECT 1 IN (SELECT a FROM t1 ORDER BY a);
prompt prompt ============================== prompt == DELETE STATS prompt ============================== prompt set echo on timing on exec dbms_stats.delete_table_stats(user, tabname=>'STATSTEST', force=>true, cascade_indexes=>true, cascade_parts=>true, cascade_columns=>true) set echo off
<reponame>PC-Axis/PxStat SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <NAME> -- Create date: 06/10/2020 -- Description: Gets Historical Releases -- ============================================= CREATE OR ALTER VIEW VW_RELEASE_HISTORICAL AS SELECT RLS_...
<reponame>maiha/facebook.cr CREATE TABLE entity_at_text_range ( id String, length Nullable(Int64), name Nullable(String), offset Nullable(Int64), type Nullable(String) ) ENGINE = Log
 ALTER TABLE [Producer].[RegisteredProducer] DROP CONSTRAINT [CN_RegisteredProducer_Unique_SchemeId_ProducerRegistrationNumber_ComplianceYear] Go /****** Object: Index [CN_RegisteredProducer_Unique_SchemeId_ProducerRegistrationNumber_ComplianceYear_IsAligned] Script Date: 05/01/2016 13:23:27 ******/ ALTER TABLE...
<filename>upgrade/1.12.29/aapb.sql CREATE TABLE priority_list ( resource_id INTEGER CONSTRAINT priority_list_resource_id_nn NOT NULL, CONSTRAINT priority_list_pk PRIMARY KEY (resource_id), CONSTRAINT priority_list_resource_fk FOREIGN KEY (resource_id) REFERENCES "resource" (id) ); CREATE TABLE member_priority ( pr...
CREATE FUNCTION func845() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE335);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE42);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE88);val:=(SELECT COUNT(*)INTO MYCOUNT...
<filename>6-analytics/recipes/redshift/recipes-customers.sql -- Copyright (c) 2013 Snowplow Analytics Ltd. All rights reserved. -- -- This program is licensed to you under the Apache License Version 2.0, -- and you may not use this file except in compliance with the Apache License Version 2.0. -- You may obtain a copy ...
<reponame>tharangar/k8s-webserver INSERT INTO `db_patches` (`issue`, `created`) VALUES ('POCOR-2874', NOW()); -- remove orphan DELETE FROM `staff_custom_field_values` WHERE NOT EXISTS ( SELECT 1 FROM `staff_custom_fields` WHERE `staff_custom_fields`.`id` = `staff_custom_field_values`.`staff_custom_field_id` )...
/* Navicat MySQL Data Transfer Source Server : smileyan.cn Source Server Version : 50729 Source Host : smileyan.cn:3306 Source Database : songci Target Server Type : MYSQL Target Server Version : 50729 File Encoding : 65001 Date: 2020-04-02 10:47:09 */ SET FOREIGN_K...
CREATE TABLE nonces ( context string NOT NULL, nonce int64 NOT NULL, group_hash string NOT NULL, topic string NOT NULL ); CREATE INDEX nonces_context ON nonces(context); CREATE INDEX nonces_group ON nonces(group_hash);
<reponame>okazdal/radiusd SELECT block_remaining FROM user WHERE user = ?
CREATE TABLE accounts ( id integer NOT NULL, username character varying(32), access_level smallint, creation_date timestamp(6) without time zone DEFAULT now() NOT NULL, passw <PASSWORD>, salt bytea ); ALTER TABLE public.accounts OWNER TO segsadmin; CREATE SEQUENCE accounts_id_seq INCREMEN...
<reponame>CBIIT/HPC_DME_APIs -- -- hpc_system_account_local_dev_env.sql -- -- Copyright SVG, Inc. -- Copyright Leidos Biomedical Research, Inc -- -- Distributed under the OSI-approved BSD 3-Clause License. -- See http://ncip.github.com/HPC/LICENSE.txt for details. -- -- -- @author <a href="mailto:<EMAIL>"><NAME></a> -...
<gh_stars>0 -- @testpoint: opengauss关键字disconnect(非保留),作为索引名,部分测试点合理报错 --前置条件,创建一个表 drop table if exists disconnect_test; create table disconnect_test(id int,name varchar(10)); --关键字不带引号-成功 drop index if exists disconnect; create index disconnect on disconnect_test(id); drop index disconnect; --关键字带双引号-成功 drop index...
<reponame>edadma/oql CREATE TABLE "author" ( "pk_author_id" BIGINT PRIMARY KEY, "name" TEXT ); CREATE TABLE "book" ( "pk_book_id" BIGINT PRIMARY KEY, "title" TEXT, "year" INTEGER, "author_id" BIGINT ); ALTER TABLE "book" ADD FOREIGN KEY ("author_id") REFERENCES "author"; INSERT INTO "author" ("pk_author_id"...
CREATE VIEW vwReparaciones_SeleccionarPorId AS SELECT * FROM Reparaciones WHERE NumeroReparacion = NumeroReparacion AND Activo = 1
<filename>putmedb.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 07, 2018 at 05:26 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_zo...
INSERT INTO department (name) VALUES ('Sales'), ('Finance'), ('Engineers'), ('HR'), ('Marketing'), ('Administration'); INSERT INTO role (title, salary, department_id) VALUES ('Sales Rep', 45000, 1), ('Finance Associate', 35000, 2), ('Engineer', 65000, 3), ('HR Rep', 45000, 4), ('Marketing Agent', 35000, 5), (...
-- -- PostgreSQL database dump -- -- Dumped from database version 9.3.10 -- Dumped by pg_dump version 9.3.10 -- Started on 2016-01-22 14:36:06 GMT 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_mess...
<reponame>Viniciusalopes/httpResponses -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Tempo de geração: 13/03/2020 às 13:18 -- Versão do servidor: 5.7.17-13-log -- Versão do PHP: 5.6.40-0+deb8u7 -- -- AUTOR: Vovolinux (<EMAIL>) -- FONTE: https://developer.mozilla.org/pt-BR/docs/Web/HTTP/St...
/* CREATE TABLE * * */ # Create User Table CREATE TABLE springdb.aop_user( userIdx int not null auto_increment, userId varchar(25) not null, userPw varchar(25) not null, userNickName varchar(25) not null, userAge varchar(25) not null, userPhone int(20) not null, userAddress varchar(255) not n...
<reponame>mikesarfaty/aportal<filename>migrations/02.courses.sql<gh_stars>0 -- depends: 01.users USE hzportal; CREATE TABLE IF NOT EXISTS courses ( course_id INT AUTO_INCREMENT NOT NULL, course_prefix VARCHAR(255) NOT NULL, course_number VARCHAR(255) NOT NULL, course_fullname VARCHAR(255) NOT NULL, ...
<reponame>Hassall/transit CREATE TABLE IF NOT EXISTS url_stats ( time timestamp NOT NULL, url text NOT NULL, region text NOT NULL, time_namelookup double precision NOT NULL, time_connect double precision NOT NULL, time_appconnect double precision NOT NULL, time_pretransfer double precision N...
SELECT r.contact_id_a AS individual_id, r.contact_id_b AS club_id FROM civicrm_contact i JOIN civicrm_relationship r ON r.contact_id_a = i.id AND r.relationship_type_id=11 JOIN civicrm_contact c ON r.contact_id_b = c.id AND c.is_deleted = 0
<gh_stars>0 SELECT DISTINCT t.id, t.project_id, t.activity_id, t.bug, t.description FROM "task_time" AS tt INNER JOIN "tasks" AS t ON t.id = tt.task_id INNER JOIN "users" AS u ON u.id = tt.user_id WHERE (u.name = :user_name AND start_time >= :start_time :: TIMESTAMP WITH TIME ZONE AND end_time <= :end_time :: TIMES...
alter table egpt_collectionindex alter paymentgateway type character varying(100);
create table cm_person ( id bigint primary key auto_increment comment 'id', code varchar(255) comment '编码', name varchar(255) comment '名称', creator_id bigint comment '创建人', create_date datetime comment '创建时间', modifier_id bi...
CREATE PROCEDURE [employer_financial].[UpdateTransactionLineDate_BySubmissionId] @SubmissionId bigint, @createdDate datetime AS UPDATE employer_financial.TransactionLine set DateCreated = @createdDate where SubmissionId = @SubmissionId
<gh_stars>1-10 --liquibase formatted sql --changeset uk.gov.pay:drop_table_catalogues ALTER TABLE products DROP CONSTRAINT fk_products_catalogues; DROP TABLE catalogues;
-- file:drop_if_exists.sql ln:59 expect:true DROP SCHEMA test_schema_exists
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 1172.16.31.10 -- Tiempo de generación: 25-12-2018 a las 22:01:39 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:0...
<reponame>emartinezpinzon/libreriaCervantes<gh_stars>0 insert into libro (titulo, categoria, distribucion, disponibles, precio) values (:titulo, :categoria, :distribucion, :disponibles, :precio)
UPDATE log SET project_id = NULL WHERE project_id IN (SELECT launch.project_id FROM launch WHERE id = log.launch_id);
ALTER TABLE commands ADD evaluated_time DATETIME DEFAULT NULL;
<reponame>blinkops/blink-aws-query<gh_stars>10-100 select id, arn, comment, etag from aws.aws_cloudfront_origin_access_identity where akas::text = '["{{ output.resource_aka.value }}"]'
-- select triarb deals which were done in current date period select count(*) from ( select id, "timestamp",timestamp_start, exchange, "instance", "server", deal_type, deal_uuid, status, currency, start_amount, result_amount, gross_profit, net_profit, config, deal_data FROM deal_reports where deal_uuid in ( ...
<reponame>SKalt/pg_sql_parser_tests<filename>fixtures/doctests/cube/004/input.sql<gh_stars>0 select cube_inter('(0,-1),(1,1)', '(-2),(2)'); cube_inter ------------- (0, 0),(1, 0) (1 row)
<gh_stars>10-100 SELECT _object_key, notetype, note, sequencenum FROM mgi_note_allele_view
<reponame>CEpBrowser/CEpBrowser--from-UCSC-CGI-BIN CREATE TABLE spXref3 ( accession varchar(40) NOT NULL default '', displayID varchar(40) NOT NULL default '', division varchar(40) NOT NULL default '', bioentryID int(11) NOT NULL default '0', biodatabaseID int(11) NOT NULL default '0', description text NOT ...
CREATE TABLE user_log( id SERIAL PRIMARY KEY, user_id uuid REFERENCES users(id) ON DELETE CASCADE, type VARCHAR(200) NOT NULL, disc TEXT NOT NULL, created TIMESTAMP DEFAULT NOW(), duration INTEGER DEFAULT 0 );
<filename>alby.northwind.codegen/query/sql/TestQuery01.Select.sql select * from testtable1 t
<reponame>attila5287/displaytracker -- # -- # DROP ALL CREATE ALL FOR POSTGRES -- # -- DROP TABLE public.item CASCADE ; DROP TABLE public.unit CASCADE ; DROP TABLE public.square CASCADE ; CREATE TABLE "item" ( "id" BIGSERIAL NOT NULL PRIMARY KEY, "manufacturer" VARCHAR(32), "catalog_no" VARCHAR(32), "catalog_full...
update attrs_cnae set img_author = 'SEBRAE-SP', img_link = 'https://flic.kr/p/nLMgXk' where id = 'g'; update attrs_cnae set img_author = 'Ministério das Relações Exteriores', img_link = 'https://flic.kr/p/ro7u6z' where id = 'o'; update attrs_cnae set img_author = 'Deltha Assessoria Empresas', img_link = 'https://f...