sql
stringlengths
6
1.05M
<reponame>dram/metasfresh<gh_stars>1000+ -- 2020-07-22T09:24:50.071Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='( -- product as component EXISTS(SELECT 1 from PP_Product_BOMLine pbl where pbl.PP_Product_BOM_ID = PP_Product_BOM.PP_Product_BOM_ID AND pbl...
<reponame>Mariocoleguilla/Plainer -- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 24-05-2021 a las 15:38:17 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.3.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START...
DELIMITER / CREATE TABLE UNIT_FORMULATED_COST ( UNIT_FORMULATED_COST_ID DECIMAL(12,0), FORMULATED_TYPE_CODE VARCHAR(3) NOT NULL, UNIT_NUMBER VARCHAR(8) NOT NULL, UNIT_COST DECIMAL(12,2) NOT NULL, UPDATE_TIMESTAMP DATE NOT NULL, UPDATE_USER VARCHAR(60) NOT NULL, VER_NBR DECIMAL(8,0) DEFAULT...
CREATE DATABASE spbank; \connect spbank; CREATE TABLE cliente( id INTEGER PRIMARY KEY, nombre VARCHAR(30), apellido_p VARCHAR(30), apellido_m VARCHAR(30), direccion VARCHAR(30), telefono VARCHAR(30), correo VARCHAR(30), contrasenia VARCHAR(30) ); CREATE TABLE cuenta( id INTEGER PRIMARY KEY, clien...
<reponame>bono-cms/Polls<filename>Storage/MySQL/schema.sql /* Categories */ DROP TABLE IF EXISTS `bono_module_polls_categories`; CREATE TABLE `bono_module_polls_categories` ( `id` INT NOT NULL PRIMARY KEY AUTO_INCREMENT, `lang_id` INT NOT NULL, `name` varchar(254) NOT NULL, `active` varchar(1) NOT NULL, ...
<gh_stars>0 create table if not exists b_workflow_document ( ID int(18) not null auto_increment, STATUS_ID int(18) not null default '0', DATE_ENTER datetime, DATE_MODIFY datetime, DATE_LOCK datetime, ENTERED_BY int(18), MODIFIED_BY int(18), LOCKED_BY int(18), FILENAME varchar(255) not null, ...
<gh_stars>0 create table PETCLINIC_CAT ( ID varchar(36) not null, -- CLAW_LENGTH integer, -- primary key (ID) );
<reponame>shinomontaz/techtree<filename>back/migrations/1_init.sql DROP TABLE IF EXISTS projects CASCADE; CREATE TABLE projects ( id SERIAL PRIMARY KEY, name VARCHAR(256) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); DROP TABLE IF EXISTS steps CASCADE; CREATE TABLE steps ( id SERIAL PRIMARY K...
USE ota; DROP TABLE IF EXISTS Zone; CREATE TABLE Zone ( -- Record ID ZoneId int unsigned AUTO_INCREMENT PRIMARY KEY, InstrumentId int unsigned NOT NULL, TimeframeId int unsigned NOT NULL, -- Zone Foreign Records BidAskId int unsigned NOT NULL, ColorChangeId int unsigned NOT NULL, Formation...
/* ################################################################################ Migration script to drop the STUDY_SNP table, a legacy table left over from the initial migration author: <NAME> date: January 25th 2017 version: 2.2.0.020 ##########################################################################...
<filename>fixtures/doctests/unaccent/004/input.sql SELECT unaccent('unaccent', 'H&ocirc;tel'); SELECT unaccent('H&ocirc;tel');
<filename>sql/_01_object/_08_primary_foreign_key/_002_alter/cases/1001.sql --add and drop primary key for created classes and select the class information and then drop classes create class aoo ( a int primary key, b int, c int ); create class boo ( a int , b int, c int, primary key(a,b)); create class coo ( a int not...
<reponame>HY11053/yidiandian<filename>yidiandian.sql /* Navicat MySQL Data Transfer Source Server : 127 Source Server Type : MySQL Source Server Version : 50714 Source Host : localhost:3306 Source Schema : yidiandian Target Server Type : MySQL Target Server Version : 50714 Fil...
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 17 Nov 2019 pada 05.08 -- Versi Server: 10.1.22-MariaDB -- PHP Version: 7.1.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
<filename>database/init/cities/city.list067.sql insert into city values (2926941,"Fichtenwalde","DE",12.88349,52.28038), (2941403,"Burgebrach","DE",10.75,49.833328), (6552268,"Grande","DE",10.3833,53.583302), (2918121,"Grande","DE",10.38333,53.583328), (6549867,"Dankmarshausen","DE",10.0167,50.9333), (2939009,"Dankmars...
<filename>media/db/mysql_upgrade_kalkun_0.7.sql -- -------------------------------------------------------- -- -- Table structure for table `user_filters` -- CREATE TABLE IF NOT EXISTS `user_filters` ( `id_filter` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) NOT NULL, `from` varchar(15) NOT NULL, `has_t...
# We want to enforce SSL on all users, but in case MySQL/RDS creates admin without this # fix it. # # Note the user of Flyway placeholder variables. If the env var FLYWAY_PLACEHOLDERS_ROOT_PASSWORD # is present then Flyway will preprocess this migration and replace the variable with the value # the env var. This is ho...
<reponame>vgulaev/slack_analyzer CREATE TABLE channel_history ( id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), channel_id character varying(255), "user" character varying(255), bot_id character varying(255), reply_count INTEGER, subtype character varying(255), ts NUMERIC(20, 6), msg_date_time timestamp...
use [DB1-Project] go create or alter view activePropertiesUsersRelations as select u.Id as UserId, u.Username, u.UserType, u.Password, p.Id as PropertyId, p.Address as PropertyAddress, p.PropertyNumber as PropertyNumber, p.Value as PropertyValue, p.AccumulatedM3 as A...
<filename>src/Financier.DataAccess/DataBase/Scripts/alter/20100504_0020_add_notification_options_to_transaction.sql ALTER TABLE transactions ADD COLUMN notification_options text;
<filename>src/main/resources/data.sql DROP TABLE IF EXISTS student; CREATE TABLE student ( id INT AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(250) NOT NULL, last_name VARCHAR(250) NOT NULL, class INTEGER NOT NULL );
select t.machine_id, round(avg(t.end_time-t.start_time), 3) processing_time from ( select machine_id, process_id, max(case when activity_type='start' then timestamp else null end) start_time, max(case when activity_type='end' then timestamp else null end) end_time from ...
CREATE DATABASE IF NOT EXISTS `tccscapucminasbackendapimonitoramentobarragens` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `tccscapucminasbackendapimonitoramentobarragens`; -- MySQL dump 10.13 Distrib 8.0.18, for Win64 (x86_64) -- -- Host: 127.0.0.1 ...
<gh_stars>1-10  update Variable set Name = substring(name, 0, 28) + '.Presence' where Name like 'Philips%.Presence'
<gh_stars>10-100 DROP VIEW IF EXISTS bebyggelser_view CASCADE; CREATE VIEW bebyggelser_view AS ( SELECT s.id, sn.navn, s.hovedtype, s.undertype AS type, sn.navnestatus, bebyggelseskode AS kode, s.visueltcenter, s.ændret, s.geo_ændret, s.geo_version, s.geom FROM stede...
CREATE TABLE IF NOT EXISTS public.pose_data ( msg_id VARCHAR(36), camera_location VARCHAR(20), msg_type VARCHAR(20), identified_action VARCHAR(40), event_time TIMESTAMP, event_time_qs VARCHAR(20), person_count SMALLINT, s3uri VARCHAR(150)) DISTKEY(camera_location) SORTKEY(event_time_qs);
<reponame>DanielHeath/activefacts-compositions vocabulary Ternary; Thing is written as Thing; // Two uniqueness constraints over the same Ternary // Check that the computed indices work correctly: each Ternary is where some first- Thing with some second- Thing relates to one third- Thing, that third Thing hol...
alter table "public"."transactions" add column "address" text null;
ALTER TABLE vetd.enums
<gh_stars>100-1000 -- bind.test -- -- db eval {DELETE FROM t4} DELETE FROM t4
<gh_stars>100-1000 -- fts3near.test -- -- execsql { -- SELECT docid FROM t1 WHERE content MATCH '"one three" NEAR/0 "four five"' -- } SELECT docid FROM t1 WHERE content MATCH '"one three" NEAR/0 "four five"'
USE [perpetuumsa] GO ------------------------------------------------------------ --Beta 1 Pitboss loot updates --Updated quantities and new entries for smooth and higher quantity loot drops -- --Date modified: 2020/05/15 ------------------------------------------------------------ --BETA 1 PITBOSS:LOOT DROP TABLE IF ...
CREATE DATABASE IF NOT EXISTS ocr_project; USE ocr_project; CREATE TABLE IF NOT EXISTS `owner` ( `OWNER_ID` int unsigned NOT NULL, `FIRST_NAME` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `LAST_NAME` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `...
<filename>dbt-greenery/models/example/fact_events.sql {{ config( materialized='table' ) }} {% set event_types = ['add_to_cart','checkout','page_view','delete_from_cart','account_created','package_shipped'] %} select session_id, created_at, user_id {% for event_type in event_ty...
<gh_stars>10-100 CREATE TABLE EDWIN_TEAM_CFG ( OWNER_TEAM_CODE NVARCHAR2(50) , EMAIL_TO_LIST VARCHAR2(255) , SMS_MAIL_TO VARCHAR2(255) , SMS_MAIL_TITLE NVARCHAR2(255) , PHONE_MAIL_TO VARCHAR2(255) , PHONE_MAIL_TITLE NVARCHAR2(255) ); ALTER TABLE EDWIN_TEA...
/* OneFileModule module : ExcelReader by Thierry (Tiptopweb) Updated 13. sep 2005 This patch introduces the following changes to the db: - Inserts entry in table rb_GeneralModuleDefinitions - Inserts entry in table rb_ModuleDefinitions Deinstalling: First remove the module from all pages then run this script (in modu...
select sub.repo_group, round(count(distinct sub.sha) / {{n}}, 2) as commits from ( select 'commits,' || coalesce(ecf.repo_group, r.repo_group) as repo_group, c.sha from gha_repos r, gha_commits c left join gha_events_commits_files ecf on ecf.event_id = c.event_id where r.name = c.d...
DROP TABLE IF EXISTS `qq_group`; CREATE TABLE `qq_group` ( `id` bigint unsigned AUTO_INCREMENT NOT NULL COMMENT 'id', `name` char(255) NOT NULL COMMENT 'QQ群名', `number` char(255) NOT NULL COMMENT 'QQ群号', `build_year` year COMMENT 'QQ群建立年', `description` char(255) COMMENT '描述', `pic` json COMMENT '图...
<filename>sqlserver/test/test_proc.sql IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GetDatadogMetricsTest]') AND type in (N'P', N'PC')) DROP PROCEDURE [dbo].[GetDatadogMetricsTest] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- =====================================...
-- @testpoint: 创建行存分区表,分区字段设为name -- @modified at: 2020-11-13 drop table if exists name_12; CREATE TABLE name_12 (c1 clob,c2 int) WITH (orientation=row, compression=no) PARTITION BY RANGE (c1) ( PARTITION P1 VALUES LESS THAN('g'), PARTITION P2 VALUES LESS THAN('n'), PARTITION P3 VALUES LESS THA...
-- @testpoint: opengauss关键字Implementation(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists explain_test; create table explain_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists Implementation; create synonym Implementation for explain_test; insert into Implementation values (1,'ada'),(2, 'bob'); u...
-- -- Nested loop join with index scan on CO table, test for MPP-17658 -- create schema co_nestloop_idxscan; create table co_nestloop_idxscan.foo (id bigint, data text) with (appendonly=true, orientation=column) distributed by (id); create table co_nestloop_idxscan.bar (id bigint) distributed by (id); -- Changing th...
-- Create entities (tables) CREATE TABLE "Booking"( id SERIAL NOT NULL PRIMARY KEY, table_number INTEGER NOT NULL, customer_fname VARCHAR(64) NOT NULL, customer_lname VARCHAR(64), customer_email VARCHAR(128), customer_phone_no VARCHAR(20) NOT NULL, date_...
DROP TABLE USER; CREATE TABLE USER ( ID INTEGER PRIMARY KEY, NAME VARCHAR(40), PASSWORD VARCHAR(50) ); INSERT INTO USER (ID, NAME, PASSWORD) VALUES(1, 'N<PASSWORD>', '<PASSWORD>'); INSERT INTO USER (ID, NAME, PASSWORD) VALUES(2, '<PASSWORD>', '<PASSWORD>'); INSERT INTO USER (ID, NAME, PASSWORD) VALUES(3, '<PASSWOR...
<gh_stars>0 with ranked AS ( SELECT client_id ,purchases_sk ,CAST(time_purchased AS DATE) ,category ,RANK() OVER ( PARTITION BY client_id ORDER BY CAST(time_purchased AS DATE) ASC ) purchase_rank FROM {ref('purchases_transformed')}} WHERE is_...
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 04 Jul 2017 pada 14.48 -- Versi Server: 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=@@CHARACTER_SET_CLIENT ...
<reponame>CSCfi/ansible-role-shibboleth-idp-configurator<gh_stars>0 # DROP DATABASE IF EXISTS `idp`; CREATE DATABASE IF NOT EXISTS `idp`; USE idp; # DROP TABLE IF EXISTS `StorageRecords`; CREATE TABLE IF NOT EXISTS `StorageRecords` ( `context` varchar(255) NOT NULL, `id` varchar(255) NOT NULL, `expires` bigint(...
<reponame>arianvaldivieso/pos -- larger_invoice_item_description -- ALTER TABLE `phppos_sales_items` CHANGE `description` `description` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;
<reponame>ElrikSouza/blog-app-api<gh_stars>0 create table user_account ( id uuid primary key, password <PASSWORD>(60) not null, email varchar(255) not null unique ); create table user_profile ( id uuid primary key, account_id uuid not null references user_account(id) on delete cascade, display_...
DROP DATABASE IF EXISTS company_db; CREATE DATABASE company_db; USE company_db; CREATE TABLE departments( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, department_name VARCHAR(30) NOT NULL ); CREATE TABLE roles( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, title VARCHAR(30) NOT NULL, salary DECIMAL(10,2) ...
<filename>EmptyStgDB/cfg/Tables/PckgGenConfig.sql CREATE TABLE [cfg].[PckgGenConfig] ( [ID] INT IDENTITY (1, 1) NOT NULL, [Project] VARCHAR (100) NULL, [Package] VARCHAR (100) NULL, [SrcType] VARCHAR (10) NULL, [SrcCode] VARCHAR (MAX) NUL...
CREATE OR REPLACE FUNCTION fetchq_test.queue_status_01( OUT passed BOOLEAN ) AS $$ DECLARE VAR_testName VARCHAR = 'IT SHOULD RETRIEVE QUEUES STATUS'; VAR_numQueues INTEGER; VAR_r RECORD; BEGIN -- initialize test -- create & drop the queue PERFORM fetchq.queue_create('foo'); PERFORM fetch...
SELECT DISTINCT PDT.PRIMARY_DS_TYPE_ID, PDT.PRIMARY_DS_TYPE AS DATA_TYPE FROM {{.Owner}}.PRIMARY_DS_TYPES PDT
CREATE TABLE PPCS.EST_PROMEDIO ( MODULO_MINUTOS NUMBER(3) NOT NULL, ...
<reponame>dshilja/CC-projekt CREATE USER 'root' IDENTIFIED BY '<PASSWORD>'; GRANT ALL PRIVILEGES ON onlinestore.* TO 'root'; CALL mysql.az_load_timezone(); SELECT name FROM mysql.time_zone_name;
ALTER TABLE IDN_OAUTH2_ACCESS_TOKEN MODIFY COLUMN TIME_CREATED TIMESTAMP;
drop sequence if exists measurement_id_seq; create sequence measurement_id_seq start with 1; insert into measurement ( measurement_id, person_id, measurement_concept_id, measurement_date, measurement_datetime, measurement_time, measurement_type_concept_id, operator_concept_id, value_as_number, value_as_concept_id, uni...
USE gdelt_db; SELECT Actor1CountryCode, avg(AvgTone) FROM gdelt_table group by Actor1CountryCode ;
<gh_stars>10-100 --name: select-user -- get user by id SELECT id, first_name, last_name, country, language, profile_visibility, profile_picture, role, about, email_notifications, activated FROM user WHERE id = :id AND deleted = 0 --name: select-user-profile-fields -- get all user's profile fields SELECT id, field, val...
<gh_stars>100-1000 CREATE TABLE t8 (s varchar(10) character set latin1 collate "en_GB" not null)
<reponame>antontarasenko/gpq # Specifying "vendor name" to find out what other firms in your industry sell to the government # Data analytics vendors are used for example select agencyid, dollarsobligated, vendorname, descriptionofcontractrequirement from gpqueries:contracts.raw where vendorname contains 't...
<filename>embed/sql/generic/fqdn.sql DECLARE @Domain NVARCHAR(100) EXEC master.dbo.xp_regread 'HKEY_LOCAL_MACHINE', 'SYSTEM\CurrentControlSet\services\Tcpip\Parameters', N'Domain',@Domain OUTPUT SELECT Cast(SERVERPROPERTY('MachineName') as nvarchar) + '.' + @Domain AS FQDN
create table customers (first_name varchar(20), last_name varchar(20));
<reponame>h-t-tran/postgresEF -- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 11/29/2014 01:15:57 -- Generated from EDMX file: C:\Users\hoanh\Google Drive\pluralsight\pos...
<filename>openGaussBase/testcase/SQL/DQL/Opengauss_Function_DQL_select_Case0011.sql -- @testpoint: DQL语法,结合order by后跟clob列 drop table if exists test_clob; create table test_clob(id int,c_clob clob); insert into test_clob values(1,'abcdeee'); insert into test_clob values(2,'abcd'); insert into test_clob values(3,'abc')...
-- @testpoint:opengauss关键字parameter_ordinal_position(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists parameter_ordinal_position; CREATE TABLESPACE parameter_ordinal_position RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace parameter_ordinal_position; --关键字带双引号,创建成功 drop tablespace if exi...
update config set value='20.04.2' where param='version';
<gh_stars>0 declare @tmptable table (firstname varchar(50), lastname varchar(50), title varchar(200)) declare @cursor cursor declare @spid int, @pid int, @firstname varchar(50), @lastname varchar(50), @title varchar(200), @year int declare @contactid int = 0 set @cursor = cursor for select sp.id spid, sp.personid, ...
INSERT INTO child(pid, name) SELECT id,name,name FROM parent
<reponame>clima-dev/builderhacks<filename>prisma/migrations/20220226113428_/migration.sql -- AlterTable ALTER TABLE "Modpack" ALTER COLUMN "downloadCount" SET DEFAULT 0;
INSERT INTO Genres(GenreName,Notes) VALUES ('Action','American the best action'), ('Drama','Story family'), ('Horror','Villains and monsters'), ('Science','The greatest disoveries'), ('Comedy','Funy films')
<filename>apex/f120/application/pages/page_00006.sql prompt --application/pages/page_00006 begin wwv_flow_api.create_page( p_id=>6 ,p_user_interface_id=>wwv_flow_api.id(40708662826080105) ,p_name=>'Test Details' ,p_page_mode=>'MODAL' ,p_step_title=>'Test Details' ,p_warn_on_unsaved_changes=>'N' ,p_autocomplete_on_off=...
CREATE PROCEDURE filmLibrary() BEGIN /* Write your SQL here. Terminate each statement with a semicolon. */ SET @fav_genre = (SELECT genre FROM movies GROUP BY genre ORDER BY COUNT(*) DESC LIMIT 1); SELECT s.actor, a.age FROM starring_actors AS s INNER JOIN actor_ages AS a ON s.actor = a.act...
-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) -- -- Host: 172.18.0.2 Database: fileshare -- ------------------------------------------------------ -- Server version 5.7.22-0ubuntu18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
<reponame>ShiyangQiu/sql-server-samples-shiyang ------------------------------------------------------------------ -- -- -- File: usp_ProductSelectionCriteria.sql -- -- Version: 0.0.0-1006 -- -- ...
<gh_stars>10-100 -- file:plpgsql.sql ln:1517 expect:false BEGIN FOR i IN $1 .. $2 LOOP RETURN NEXT i + 1
<reponame>18F/openFEC<filename>data/migrations/V0064__schedule_f_add_cycle_idx.sql CREATE INDEX ofec_sched_f_mv_tmp_cycle_sub_id_idx1 ON ofec_sched_f_mv USING btree (election_cycle, sub_id);
select c_integer, cume_dist() over(order by c_integer desc nulls first) from j1 order by 2;
<gh_stars>1-10 INSERT INTO salumistore.reputation VALUES (1, 'Traditional'); INSERT INTO salumistore.reputation VALUES (2, 'Normal' ); INSERT INTO salumistore.products (name, price, fat, reputation) VALUES ('Chorizo Spagnolo' , 15.55, 49.99, 2); INSERT INTO salumistore.products (name, price, fat, reputati...
/****** Object: View [dbo].[V_Search_CollectionID_By_ProteinName] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW dbo.V_Search_CollectionID_By_ProteinName AS SELECT dbo.T_Protein_Collection_Members.Protein_Collection_ID AS Collection_ID, dbo.T_Protein_Names.Name, 'collectionIDByProteinN...
<filename>persistence/sql/migrations/sql/20200705105359_rename_identities_schema.cockroach.up.sql ALTER TABLE "identities" RENAME COLUMN "traits_schema_id" TO "schema_id";COMMIT TRANSACTION;BEGIN TRANSACTION;
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jun 20, 2018 at 11:16 PM -- Server version: 5.7.19 -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
-- Table: public."SpendSummaries" -- DROP TABLE public."SpendSummaries"; CREATE TABLE public."SpendSummaries" ( "ID" bigserial NOT NULL, "TrackerID" bigint NOT NULL, "UserID" bigint NOT NULL, "Currency" text NOT NULL DEFAULT '£'::text, "Value" numeric NOT NULL, CONSTRAINT "PK_SpendSummaries" PRIMAR...
<filename>HackerRank/sql/Basic Select/Weather Observation Station 10.sql SELECT DISTINCT city FROM station WHERE city NOT RLIKE '.*[aeiouAEIOU]$'
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mar. 02 mars 2021 à 22:18 -- Version du serveur : 8.0.21 -- Version de PHP : 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<gh_stars>0 -------------------------------------------------------------------------------- -- Up -------------------------------------------------------------------------------- CREATE TABLE css_selector ( name VARCHAR PRIMARY KEY NOT NULL, created_at DATE NOT NULL, seen_at DATE -- first_see...
\i 05-clustering-a-regions.sql \i 05-clustering-b-clusters.sql \i 05-clustering-c-size-1.sql \i 05-clustering-d-size-2.sql \i 05-clustering-e-pairs.sql \i 05-clustering-f-size-N.sql
<filename>setup/SQL/CreateTables.sql DROP DATABASE IF EXISTS HeadacheBot; CREATE DATABASE HeadacheBot; USE HeadacheBot; CREATE TABLE question ( QID INT NOT NULL AUTO_INCREMENT, qText VARCHAR (256), PRIMARY KEY (QID)); CREATE TABLE leads_to ( parentQID INT, childQID INT, response VARCHAR (256), PRI...
CREATE TABLE ig_media ( id String, caption Nullable(String), comments_count Nullable(Int64), ig_id Nullable(String), is_comment_enabled Nullable(UInt8), like_count Nullable(Int64), media_type Nullable(String), media_url Nullable(String), permalink Nullable(String), shortcode Nullable(String), thum...
/* Use WideWorldImporters Database */ drop table if exists dbo.sample_cities; select CityId, CityName, StateProvinceID, [Location], LatestRecordedPopulation, LastEditedBy into dbo.sample_cities from [Application].[Cities] go select CityName, count(*) as [Rows] from dbo.sample_cities where CityName in ('Redmond'...
SELECT COUNT(DISTINCT "MulheresMil_1"."Calculation_838513981462429699") AS "ctd:Calculation_838513981462429699:ok" FROM "MulheresMil_1" WHERE ((NOT (("MulheresMil_1"."nome da sit matricula (situacao detalhada)" NOT IN ('', 'INTEGRALIZADA', 'TRANCADA', 'EM_CURSO', 'EM_DEPENDÊNCIA')) OR ("MulheresMil_1"."nome da sit matr...
-- file:with.sql ln:770 expect:true WITH t1 AS ( DELETE FROM bug6051 RETURNING * ) INSERT INTO bug6051 SELECT * FROM t1
<gh_stars>1-10 insert into positions(person, organization, title, start_date, start_date_precision, end_date, end_date_precision, urls, notes, employment_type, cause_area) values ('<NAME>','Wild-Animal Suffering Research','Executive Director','2017-06-01','month',NULL,NULL,'https://web.archive.org/web/2017072018484...
UPDATE creature_template SET ScriptName='spell_dummy_npc' WHERE entry=24918;
<reponame>pcmasuzzo/COVID-19_Sicilia<filename>risorse/query/andamentoPosititiviProvincia.sql WITH andamentoprovincia AS ( SELECT data, covid_19_sicilia_dati.sigla_provincia, covid_19_sicilia_dati.totale_positivi FROM covid_19_sicilia_dati ORDER BY DATA ) SELECT * FROM andamentoprovincia PIVOT (MAX(totale_positiv...
<reponame>ed-quiroga-2103/Proyecto1Bases<gh_stars>0 INSERT INTO Items VALUES (251, 251, 1, 'Nice Wheels', 'Wheels', 45, 1, '2019-10-03'), (252, 252, 1, 'The best Skateboard', 'Skateboard', 120, 1, '2019-10-03'), (253, 253, 1, 'Amazing Shoes', 'Shoes', 80, 1, '2019-10-03'), (254, 254, 1, 'Nice Wheels', 'Wheels', 45, 1, ...
<gh_stars>1-10 -- system_patches INSERT INTO `system_patches` (`issue`, `created`) VALUES('POCOR-3797', NOW()); -- competency_criterias RENAME TABLE `competency_criterias` TO `z_3797_competency_criterias`; DROP TABLE IF EXISTS `competency_criterias`; CREATE TABLE `competency_criterias` ( `id` int(11) NOT NULL AUTO_...
<reponame>andreylipattsev/almanac.httparchive.org<filename>sql/2021/security/cookie_max_age_expires_top_values.sql #standardSQL # Top 10 values of Max-Age and Expires cookie attributes. CREATE TEMPORARY FUNCTION getCookieAgeValues(headers STRING, epochOfRequest NUMERIC) RETURNS STRING DETERMINISTIC LANGUAGE js AS ''' ...
<reponame>mmci2468/automate -- Revert user_cache BEGIN; DROP TABLE IF EXISTS user_cache; COMMIT;
-- created 2013-01-08 -- This file contains the mw_location_pcr table, which was originally created as tbl_location_pcr and then renamed to mw_location_pcr -- but due to a bug it may not be created by previous SQL scripts correctly CREATE TABLE `mw_location_pcr` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `location` ...