sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 17, 2021 at 05:30 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
USE [ODS] GO /****** Object: View [dbo].[v_SSISPackageBatchRunTime] Script Date: 3/29/2018 12:38:34 PM ******/ DROP VIEW [dbo].[v_SSISPackageBatchRunTime] GO /****** Object: View [dbo].[v_SSISPackageBatchRunTime] Script Date: 3/29/2018 12:38:34 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO C...
INSERT INTO books (author,title,isbn,image_url,description) VALUES ('<NAME>','HTML, CSS, and JavaScript Mobile Development For Dummies','W<NAME>rel isbn','http://books.google.com/books/content?id=Tal5fZUsQA0C&printsec=frontcover&img=1&zoom=5&source=gbs_api','NO DESCRIPTION AVAILABLE')
<reponame>daniel-velez7/Perfect-Project3<filename>cm_web_site (1).sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 24, 2021 at 10:40 AM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACT...
<gh_stars>0 SELECT username, last_login FROM User_List WHERE usage_id = :usage_id;
-- Naive Solution -- TODO: Try another approach as joins are costly SELECT * FROM (SELECT students.student, other_students.student AS other_student, (students.score - other_students.score) AS diff FROM students JOIN students AS other_students ON students.student != other_students.student) A...
<reponame>pscream/schedule_proto<filename>script/drop-data/500-drop-database.sql DROP DATABASE IF EXISTS ScheduleTrial;
<filename>storage/db-sql-server/src/main/resources/db/migration/R__insert_pocket_vehicle_stock.sql USE [demo] GO TRUNCATE TABLE [pocket].[pocket_vehicle_stock] -- Toyota INSERT [pocket].[pocket_vehicle_stock] (sku_guid, vehicle_id, service_day_count, free_day_count, create_on, last_modified) VALUES ('acc35760-404...
CREATE TABLE AllTypes ( id uuid, "varchar" varchar, "text" text, "int" int, "bigint" bigint, "varint" varint, "smallint" smallint, "date" date, "timestamp" timestamp, "time" time, "float" float, "decimal" decimal, "double" double, "boolean" boolean, "blob" blo...
<filename>db/sgc_efqm-localhost.sql -- MySQL Workbench Forward Engineering 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'; -- -------------------------------------...
<reponame>osuripple/misirlou-api CREATE TABLE tournament_staff( id INT NOT NULL, tournament BIGINT NOT NULL, privileges INT NOT NULL, PRIMARY KEY(id, tournament) );
/* Enter your query here. */ SELECT DISTINCT(CITY) FROM STATION WHERE ID % 2 = 0;
-- insert.test -- -- execsql { -- CREATE TABLE t6(x INTEGER PRIMARY KEY, y); -- INSERT INTO t6 VALUES(1,1); -- INSERT INTO t6 VALUES(2,2); -- INSERT INTO t6 VALUES(3,3); -- INSERT INTO t6 SELECT nullif(y*2+10,14), y+100 FROM t6; -- SELECT x, y FROM t6; -- } CREATE TABLE t6(x INTEGER PRIMARY KEY...
<gh_stars>10-100 CREATE TABLE [dbo].[man_mta_queue]( [mta_msg_id] [uniqueidentifier] NOT NULL, [mta_queue_queuedTimestamp] [datetime] NOT NULL, [mta_queue_attemptSendAfter] [datetime] NOT NULL, [mta_queue_isPickupLocked] [bit] NOT NULL, [mta_queue_dataPath] [nvarchar](max) COLLATE Latin1_General_CI_AS NULL, ...
create or replace package image_api as /* Supported image operations can be found here: - http://docs.oracle.com/cd/E11882_01/appdev.112/e10776/ap_imgproc.htm#CHDGACDH */ dimension_too_large exception;--For cropping invalid_scale_mode exception;--for scaling by a factor type image_dime...
<gh_stars>1-10 -- User in Azure SQL Database or Azure Synapse Analytics (SQL Data Warehouse) based on an Azure Active Directory user -- DisplayName of Azure AD object for Azure AD Groups and Azure AD Applications. If you had the Nurses security group, you would use: CREATE USER [Group1] FOR EXTERNAL PROVIDER WITH DEF...
-- GRANT EXECUTE ON FUNCTION list_intersecting TO anon; CREATE OR REPLACE FUNCTION public.list_intersecting(featurecollection json) RETURNS SETOF inference AS $$ SELECT * FROM inference WHERE ST_Intersects( ST_GeomFromGeoJSON(featurecollection->'features'->0->'geometry'), geometry); $$ LANGUAGE SQL;
<gh_stars>1-10 DELETE FROM product_item;
DROP TABLE IF EXISTS version;
CREATE TABLE IF NOT EXISTS public."PathEdges" ( "PathEdgeID" SERIAL PRIMARY KEY NOT NULL, "SavedPathID" integer NOT NULL, "EdgeID" integer NOT NULL, CONSTRAINT fk_savedPathID FOREIGN KEY("SavedPathID") REFERENCES public."SavedPath"("SavedPathID"), CONSTRAINT fk_edgeID FOREIGN KEY("EdgeID")...
/* Navicat Premium Data Transfer Source Server : 本地数据库 Source Server Type : MySQL Source Server Version : 50726 Source Host : localhost:3310 Source Schema : nsq_proxy Target Server Type : MySQL Target Server Version : 50726 File Encoding : 65001 Date: 08/02/2022 14:5...
<filename>OneRoster.Persistence/Database/MsSQL/Scripts/classes.view.sql<gh_stars>0 CREATE OR ALTER VIEW onerosterv11.classes AS SELECT DISTINCT EDO.educationorganizationid AS "SchoolId" ,EDO.nameofinstitution AS "NameOfInstitution" ,SEC.Id A...
<filename>webserver/app-moe/sql/Version/3.1.x/3.1.2/rollback.sql -- -- PHPOE-1948 rollback.sql -- UPDATE `security_groups` INNER JOIN `institution_sites` ON `security_groups`.`id` = `institution_sites`.`security_group_id` SET `security_groups`.`name`=`institution_sites`.`name` WHERE `institution_sites`.`security_gro...
#给角色配置资源权限 INSERT INTO t_ref_websource_role SELECT 1,t.s_id FROM t_web_source AS t; #查询角色列表 SELECT r.R_ID,r.R_NAME, (CASE WHEN app.name IS NULL THEN '-' ELSE app.name END ) APP_SOURCE, (CASE WHEN web.name IS NULL THEN '-' ELSE web.name END ) WEB_SOURCE, (CASE WHEN cou.num IS NULL THEN 0 ELSE cou.num END )...
<reponame>Zhaojia2019/cubrid-testcases --+ holdcas on; set names utf8; set system parameters 'intl_date_lang = it_IT'; -- date select 'to_date( , DAY )'; SELECT TO_DATE('2011-05-01 DOMENICA', 'yyyy-MM-DD DAY'); SELECT TO_DATE('2011-05-02 LUNEDÌ', 'yyyy-MM-DD DAY'); SELECT TO_DATE('2011-05-03 MARTEDÌ', 'yyyy-MM-DD DAY')...
(SELECT * FROM table_1) INTERSECT (SELECT * FROM table_2)
CREATE TABLE [dbo].[ParameterDefinition] ( [ParameterDefinitionId] UNIQUEIDENTIFIER DEFAULT (newid()) NOT NULL, [WidgetDefinitionId] UNIQUEIDENTIFIER NOT NULL, [Name] VARCHAR (50) NOT NULL, [DefaultValue] VARCHAR (200) NULL, [ParameterType] INT NOT NULL DEFAULT 0...
create table if not exists street_names_mappings ( teryt_simc_code text not null, teryt_ulic_code text not null, osm_street_name text not null, constraint street_names_mappings_pk primary key (teryt_simc_code, teryt_ulic_code) );
SELECT acc.location, count(*) FROM site as s, so_user as u1, question as q1, answer as a1, tag as t1, tag_question as tq1, badge as b, account as acc WHERE s.site_id = q1.site_id AND s.site_id = u1.site_id AND s.site_id = a1.site_id AND s.site_id = t1.site_id AND s.site_id = tq1.site_id AND s.site_id = b.site_id AND q1...
<filename>Homework_Farm_Simulator.sql<gh_stars>0 USE [master] GO DECLARE @kill varchar(8000) = '' SELECT @kill = @kill + 'kill ' + CONVERT(varchar(5), session_id) + ';' FROM sys.dm_exec_sessions WHERE database_id = DB_ID('AnimalClubDb') EXEC(@kill) GO DROP DATABASE IF EXISTS [AnimalClubDb] GO CREATE DATABASE [Anima...
<reponame>linepro/ModellBahn INSERT INTO hersteller (deleted, bezeichnung, name, land ,telefon, url, abbildung, id) VALUES (FALSE, 'Avago Technologies', 'AVAGO', 'US', NULL, 'https://www.broadcom.com/', NULL, 313); INSERT INTO hersteller (deleted, bezeichnung, name, land ,telefon, url, abbildung, id) VALUES (FALSE, '4M...
<filename>homesensorscloud/src/main/resources/data.sql SELECT 1; -- INSERT INTO device (id, mac, place) VALUES(0, '00:0A:E6:3E:FD:E1', 'Kobierzyńska 98/Salon'); -- INSERT INTO sensor (id, device_id, "name", multiplier, description, unit) VALUES(0, 0, 'Temperature_1', 1, 'Temperatura w domu - test', '°C'); -- INSERT INT...
CREATE SCHEMA IF NOT EXISTS pongo; SET search_path TO pongo,public; CREATE OR REPLACE FUNCTION "_type"(anyelement) RETURNS json AS $$ SELECT to_json(pg_typeof($1)) AS "type" ; $$ LANGUAGE SQL;
/* Replace with your SQL commands */ CREATE TABLE IF NOT EXISTS users ( id INTEGER AUTO_INCREMENT PRIMARY KEY, email TEXT, name TEXT, password TEXT NOT NULL, admin BOOLEAN NOT NULL DEFAULT 0 );
-- file:collate.icu.utf8.sql ln:306 expect:true SELECT mylt2('a', 'B' collate "C") as fail
<reponame>Shuttl-Tech/antlr_psql -- file:horology.sql ln:323 expect:true SELECT '' AS ten, f1 AS interval, reltime(f1) AS reltime FROM INTERVAL_TBL
-- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= CREATE PROCEDURE [dbo].[final_data_moves] AS BEGIN SET NOCOUNT ON; insert NEW_QUESTION_SETS (Set_Name,Question_Id) SELECT...
<reponame>TheRakeshPurohit/CodingSpectator --This file is licensed under the University of Illinois/NCSA Open Source License. See LICENSE.TXT for details. \p Computing the number of different kinds of status for every pair of refactoring ID and refactoring invocation kind. DROP TABLE "PUBLIC"."PER_REFACTORING_ID_KIND...
<filename>Backend/Databases/es_veicolo.sql -- I veicoli utilizzati in un'area portuale dispongono di un dispositivo che ne registra ogni secondo la posizione e la invia ad un server centrale che la registra in un database. -- CREATE DATABASE Veicoli; -- USE Veicoli; CREATE TABLE 191125_veicolo ( targa CHAR(7) NOT NU...
<gh_stars>0 /* test script */ CREATE TABLE EMPLOYEE ( id int, name char(20), salary double, degree char(20), phone char(50) );
INSERT [dbo].[person] ([address], [first_name], [gender], [last_name]) VALUES (N'<NAME> 910', N'Crislaine', N'Female', N'<NAME>') INSERT [dbo].[person] ([address], [first_name], [gender], [last_name]) VALUES (N'<NAME> 910', N'Breno', N'Male', N'Medeiros') INSERT [dbo].[person] ([address], [first_name], [gender], [last_...
<filename>api/sql/schema/450-rule.falseActorFactorCount.sql CREATE FUNCTION [rule].falseActorFactorCount( @conditionId INT, @actors [rule].[properties] READONLY ) RETURNS BIT AS BEGIN RETURN ( SELECT COUNT(*) FROM [rule].conditionActor WHERE conditionId = @conditionId AND factor NOT IN ( ...
<reponame>wuruiwm/estate -- MySQL dump 10.13 Distrib 5.6.42, for Linux (x86_64) -- -- Host: localhost Database: hefangbao -- ------------------------------------------------------ -- Server version 5.6.42-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=...
CREATE TABLE `oauth_client_details` ( `client_id` varchar(255) NOT NULL, `resource_ids` varchar(255) DEFAULT NULL, `client_secret` varchar(255) DEFAULT NULL, `scope` varchar(255) DEFAULT NULL, `authorized_grant_types` varchar(255) DEFAULT NULL, `web_server_redirect_uri` varchar(255) DEFAULT NULL, `...
with student_attendance as ( select {{ dbt_utils.surrogate_key([ 'schools.local_education_agency_id', 'ssa.school_year_type_reference.school_year' ]) }} as local_education_agency_...
<reponame>mmci2468/automate -- Verify delivery:consumer_change_ids_by_pipeline on pg BEGIN; SELECT has_function_privilege( 'consumer_change_ids_by_pipeline(bigint)', 'execute'); ROLLBACK;
<reponame>shaunstoltz/kunlun -- -- POINT -- -- Test that GiST indexes provide same behavior as sequential scan CREATE TEMP TABLE point_gist_tbl(f1 point); INSERT INTO point_gist_tbl SELECT '(0,0)' FROM generate_series(0,1000); CREATE INDEX point_gist_tbl_index ON point_gist_tbl USING gist (f1); INSERT INTO point_gist_t...
<reponame>ilya2002/ekz -- phpMyAdmin SQL Dump -- version 4.7.5 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Июн 06 2019 г., 12:08 -- Версия сервера: 5.6.34 -- Версия PHP: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
<reponame>DanmerCC/inscripciones-caen CREATE TABLE `notifications` ( `id` INT NOT NULL AUTO_INCREMENT, `tipo_usuario_id` INT NOT NULL, `action_id` INT NOT NULL, `time` TIMESTAMP NOT NULL, `mensaje` VARCHAR(500) NOT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB; ALTER TABLE `notifications` ADD INDEX(`tipo_usuario_i...
SELECT DISTINCT name FROM people JOIN stars ON stars.person_id = people.id JOIN movies ON stars.movie_id = movies.id WHERE year = "2004" ORDER BY birth;
<filename>users.sql -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 10, 2020 at 02:39 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"...
-- Disparadores -- Función para el siguiente disparador. -- Sí se fuera a ingresar un trabajadros que no es chofer ni es dueño lanza una excepción. create or replace function check_chofer_o_duenio() returns trigger as $$ begin if(not (new.esChofer or new.esDuenio)) then raise exception 'Todos los trabajadore...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 30, 2017 at 07:17 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 = "+00:00"; /*!4...
<reponame>ytrinh/dev-postgres insert into test (data) values ('This is a test');
<reponame>dipch/Game-Review-System Insert into Supports_rel(GameId,PlatformId) Values(1,5),(1,6), (2,2),(2,3),(2,5),(2,6), (3,1), (4,1), (5,2),(5,3), (6,1), (7,1),(7,2),(7,4), (8,1), (9,1), (10,2),(10,3),(10,4),(10,6), (11,4), (12,1), (13,1),(13,2),(13,3), (14,2), (15,4), (1...
/* Navicat Premium Data Transfer Source Server : corona_db Source Server Type : MySQL Source Server Version : 50616 Source Host : localhost:3306 Source Schema : corona_db Target Server Type : MySQL Target Server Version : 50616 File Encoding : 65001 Date: 11/03/2022 ...
insert into pemasukans (name, created_at, product, quantity, price) values ('<NAME>', '2021-08-23', 'Spice - Chili Powder Mexican', 1, '¥277232895.01'); insert into pemasukans (name, created_at, product, quantity, price) values ('Ang<NAME>', '2021-06-04', 'Sugar Thermometer', 2, '¥260578069.32'); insert into pemasukans...
<filename>TestingExamples/PersonalPhotos-Test/PersonalPhotos-master/Database Scripts/Users.sql<gh_stars>0 Create Table Users ( Id int not null identity(1,1) primary key, Email varchar(100) not null, [password] varchar(100) not null ) Create Index IX_Users_Email On Users (Email)
<filename>db/seeds.sql /* == seeds.sql == */ INSERT INTO burgers (burger_name) VALUES ('Buffalo Burger'), ('Barbecue Burger'), ('Cheese Burger'), ('Veggie Burger'), ('Steak Burger'), ('Chili Burger');
<reponame>marceloVinicius12/listagem-usuarios CREATE DATABASE bd_usuarios; CREATE TABLE tb_usuarios; ( usuario VARCHAR(20), senha VARCHAR(8), administrador VARCHAR(3));
<gh_stars>0 SELECT title, min_duration FROM movies ORDER BY LENGTH(title) DESC, min_duration ASC;
<reponame>borkit/scriptdump<filename>SQLServer/Working/SQLBackupDatabasesToDiskWithCopyOnly.sql /* Simple script to backup all SQL Server databases with Copy Only switch */ DECLARE @name VARCHAR(50) -- database name DECLARE @path VARCHAR(256) -- path for backup files DECLARE @fileName VARCHAR(256) -- filename for ba...
-- vtab1.test -- -- execsql { -- SELECT * FROM et1, et2 WHERE et2.d = 2; -- } SELECT * FROM et1, et2 WHERE et2.d = 2;
INSERT INTO member(firstname, name, email, password, street, "NPA", city, phone, "isAdmin", location) VALUES ('Contact', 'FindYourPet', '<EMAIL>', <PASSWORD>', 'Rte de Cheseaux 1', 1400, 'Yverdon-les-Bains', 0796132606, true, '0101000020E6100000000000E06FA31A4000000040C3634740'); INSERT INTO species(name) VALUES (...
-- DropForeignKey ALTER TABLE `playeravatar` DROP FOREIGN KEY `PlayerAvatar_attribute_status_id_fkey`; -- AddForeignKey ALTER TABLE `PlayerAvatar` ADD CONSTRAINT `PlayerAvatar_attribute_status_id_fkey` FOREIGN KEY (`attribute_status_id`) REFERENCES `AttributeStatus`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
<reponame>DWalterJansen/BD---Interface-Copa-do-Am-rica -- Inserindo dados na Tabela Grupo -- INSERT INTO Grupo VALUES ('A'); INSERT INTO Grupo VALUES ('B'); INSERT INTO Grupo VALUES ('C');
use biomedical_indicators; # Данные таблицы equipment INSERT INTO equipment (Name_equipment) VALUES('Монометр'); INSERT INTO equipment (Name_equipment) VALUES('Газовый счётчик'); INSERT INTO equipment (Name_equipment) VALUES('Динамометр'); INSERT INTO equipment (Name_equipment) VALUES('Стабилометрическая платформа'); I...
<reponame>figment-networks/mina-indexer SELECT MIN(height) start_height, MAX(height) end_height, MIN(time) start_time, MAX(time) end_time, COUNT(*) count, EXTRACT(EPOCH FROM MAX(time) - MIN(time)) AS diff, EXTRACT(EPOCH FROM ((MAX(time) - MIN(time)) / COUNT(*))) AS avg FROM ( SELECT * FROM blocks ...
<reponame>LasseWolter/clowdr DROP TABLE "public"."Hallway";
drop table user if exists; create table user (id bigint generated by default as IDENTITY, username VARCHAR(40), name VARCHAR(20), age int(3), balance decimal(10,2), PRIMARY KEY (id));
/*SQL Portion of Final Project*/ /*Creating and joining tables*/ DROP TABLE college_data; CREATE TABLE college_data_numerical_state(UnitID SERIAL, SchoolName VARCHAR, StateCode VARCHAR, Sector VARCHAR, OpenAdmissionPolicy VARCHAR, GPA VARCHAR, SchoolRank VARCHAR, SecondarySchoolRecord VARCHAR, Recs VARCHAR, A...
USE T20; # Disable Windows,Android,iOS,Generic platform for hpn enterprise on prod. DELETE FROM dp_enterprise_platforms WHERE enterprise_id='3bd4a946-2244-11e3-9c3f-1cc1de6f6c7e' AND platform_id=2; DELETE FROM dp_enterprise_platforms WHERE enterprise_id='3bd4a946-2244-11e3-9c3f-1cc1de6f6c7e' AND platform_id=6; DELETE...
<filename>sql/fund.sql /* Navicat MySQL Data Transfer Source Server : ubuntu_mysql Source Server Type : MySQL Source Server Version : 80018 Source Schema : fund Target Server Type : MySQL Target Server Version : 80018 File Encoding : 65001 Date: 02/01/2020 22:50:15 ...
<filename>comercio.sql -- MySQL Script generated by MySQL Workbench -- Fri Jul 21 03:52:08 2017 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering 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=@...
<gh_stars>0 CREATE INDEX aidansymboli_wkb_geometry_geom_idx ON aidansymboli USING gist (wkb_geometry); CREATE INDEX aita_wkb_geometry_geom_idx ON aita USING gist (wkb_geometry); CREATE INDEX allas_wkb_geometry_geom_idx ON allas USING gist (wkb_geometry); CREATE INDEX ankkuripaikka_wkb_geometry_geom_idx ON ankkuripaikka...
-- Waypoints that are reachable from roads -- The tuple (W, R) for waypoint W and road R is in the table if any of the -- following statements are true: -- 1. Waypoint is an intersection in road R -- 2. Waypoint is an endpoint in road R -- 3. Statement 1 or 2 is true for any road R^ where R^ is reachable by following ...
-- MySQL dump 10.16 Distrib 10.1.34-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: 127.0.0.1 Database: security_test -- ------------------------------------------------------ -- Server version 10.1.34-MariaDB-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_C...
CREATE UNIQUE INDEX UQ_bocHash ON BinaryObjectContent (bocHash) GO CREATE NONCLUSTERED INDEX IDX_bioHash ON BinaryObject (bioHash) GO CREATE UNIQUE INDEX UQ_bopBopParentId_bopName ON BinaryObjectPath (bopBopParentId, bopName) GO CREATE UNIQUE INDEX UQ_JavaTypeImplementedInterface ON JavaTypeImplementedInterface (jti...
<reponame>aliostad/deep-learning-lang-detection SELECT count(*) as total_inquiries, sum(replied) inquiry_replied, sum(no_reply) inquiry_no_reply, sum(no_reply_not_read) inquiry_no_reply_not_read, sum(no_reply_read) inquiry_no_reply_read, sum(messages) as total_messages, round(sum(messages)/count(*),2) avg_mess_per_inq...
-- intarray.test -- -- db eval { -- SELECT b FROM t1 WHERE a IN ia3 ORDER BY a -- } SELECT b FROM t1 WHERE a IN ia3 ORDER BY a
<gh_stars>10-100 DROP TABLE IF EXISTS `routeperformancereport`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `routeperformancereport` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '路由Id', `executeplanid` big...
<gh_stars>1000+ -- +migrate Up CREATE SEQUENCE history_claimable_balances_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; CREATE TABLE history_claimable_balances ( id bigint NOT NULL DEFAULT nextval('history_claimable_balances_id_seq'::regclass), claimable_balance_id te...
<gh_stars>0 SELECT userid as USERID, pw_expire_date as PW_EXPIRE_DATE, account_status as ACCOUNT_STATUS, failed_logins as RUN_END_TIME FROM DB2AUTH.USERS as db2authUsers
if not Exists(select * from LookupMaster where Name like 'WHOStageIConditions%') insert into LookupMaster (Name,DisplayName,DeleteFlag) values('WHOStageIConditions','WHOStageIConditions','0') go if not Exists(select * from LookupMaster where Name like 'WHOStageIIConditions%') insert into LookupMaster (Name,DisplayNam...
<filename>backup/delta_load_master_control_start.sql {% macro delta_load_master_control_start() -%} {% if execute %} {% if var('is_delta_load') and var('batch_name') != 'NA' and var('delta_load_batch_id') == -1 %} {{ log("Starting batch " ~ run_started_at.strftime("%s") , info=True) }} {% do run_q...
<gh_stars>0 CREATE DATABASE IF NOT EXISTS `cadastro` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `cadastro`; -- MySQL dump 10.13 Distrib 5.7.25, for Win64 (x86_64) -- -- Host: localhost Database: cadastro -- ------------------------------------------------------ -- Server version 5.7.24 /*!40101 SET @OLD_CHARACTE...
update gha_commits c set dup_author_login = (select distinct a.login from gha_actors a, gha_actors_names an where a.id = an.actor_id and an.name = c.author_name) where c.dup_author_login = '' and c.author_name != '' and (select count(distinct a.login) from gha_actors a, gha_actors_names an where a.id = an.actor_id and ...
CREATE UNIQUE INDEX "COLL_EVENT_NUM_SERIES_PK" ON "COLL_EVENT_NUM_SERIES" ("COLL_EVENT_NUM_SERIES_ID")
-- Name: GetScanEventById -- Schema: posda_phi -- Columns: ['scan_event_id', 'scan_started', 'scan_ended', 'scan_status', 'scan_description', 'num_series_to_scan', 'num_series_scanned'] -- Args: ['scan_id'] -- Tags: ['UsedInPhiSeriesScan', 'NotInteractive'] -- Description: List of values seen in scan by VR (with count ...
<filename>dbt-greenery/models/example/user_check.sql {{ config( materialized='table' ) }} with ssns as ( SELECT session_id FROM dbt_tony_nickel.stg_events GROUP BY session_id HAVING count(distinct user_id)>1 ), evts as ( SELECT session_id, user_id FROM ...
CREATE TABLE IF NOT EXISTS `producer` ( `id` VARCHAR(255) NOT NULL PRIMARY KEY, `producerId` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL, `token` VARCHAR(255) NOT NULL, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL, UNIQUE (`producerId`) ); CREATE TABLE IF NOT EXISTS ...
<gh_stars>1-10 create table dillensqlmanagementstudiouser( macAdressPC varchar(12) primary key, qtdTimesUsedApp int not null ) create table userdatabase( macAdressPC varchar(12) not null, conStr varchar(300) not null, --without password encryptedPassword varchar(256) not null, qtdExecutions int not null, qtdSintaxHelp...
<filename>main/resources/data.sql INSERT INTO cidade (nome) VALUES('Santa Rita do Sapucaí'); INSERT INTO cidade (nome) VALUES('Pouso Alegre'); INSERT INTO cidade (nome) VALUES('Cachoeira de Minas'); INSERT INTO cidade (nome) VALUES('Itajubá');
<gh_stars>0 prompt --application/deployment/install/install_blog_post_text_index begin -- Manifest -- INSTALL: INSTALL-Blog post text index -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.10.15' ,p_release=>'21.2.6' ,p_default_workspace_id=>18303204396897713 ,p_default_application_id...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 26-Ago-2016 às 14:39 -- Versão do servidor: 5.7.11 -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: online-shoping-store -- ------------------------------------------------------ -- Server version 5.7.10-log use test_web_shop; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RES...
<reponame>Atagait/BlazBooruAPI CREATE TABLE "Image_Data" ( "ID" INTEGER, "Image" TEXT, "MD5" TEXT, "Original_Name" TEXT, "Site_Origin" TEXT, "Score" INTEGER, PRIMARY KEY("ID" AUTOINCREMENT), UNIQUE("MD5"), UNIQUE("Image") );|||CREATE TABLE "Tags_Data" ( "Tag" TEXT UNIQUE, "Type" TEXT DEFAULT 'General', "Ref...
-- AlterTable ALTER TABLE "Internal" ADD COLUMN "image" TEXT;
CREATE TABLE favorite ( id BIGINT AUTO_INCREMENT PRIMARY KEY, created_date DATETIME(6) NULL, modified_date DATETIME(6) NULL, member_id BIGINT NULL, source_station_id BIGINT NULL, target_station_id BIGINT NULL ); CREATE TABLE line ( id BIGINT AUTO_I...
<filename>mysql_table.sql create table song_explorer_models (Year VARCHAR(100), song_name VARCHAR(100), ID VARCHAR(100), created_at VARCHAR(100)