sql
stringlengths
6
1.05M
SET NOCOUNT ON; SELECT smssitecode AS SiteCode, servername, packageid, NAME AS PackageName, [version], CASE installstatus WHEN 'Content monitoring' THEN 'Failed' WHEN 'Package installation failed' THEN 'Failed' WHEN 'Retrying package installation' TH...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 04, 2017 at 09:42 AM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
/* Development command line shortcuts: -- remove old DBs, create new one and display query results rm *db ; sqlite3 -column -header example.db < database-example.sql */ CREATE TABLE users( id INTEGER PRIMARY KEY, firstname TEXT, lastname TEXT, registerdate DATE ); CREATE TABLE orders( id INTEGER PRIM...
<filename>Database/PL SQL/oodbms.sql -- Object Oriented Database Management Application(OODBMS) -- Create different types and tables -- Insertion of values in the tables -- Author -- Publisher -- Book -- Queries -- a)List all the authors that have the same pin code as their publisher. -- b)List all books that have 2 o...
CREATE TABLE "STAFF_USER_ACCOUNTS" ( "USERNAME" VARCHAR2(30 CHAR) NOT NULL , "STAFF_ID" NUMBER(10, 0) NOT NULL , "STAFF_USER_TYPE" VARCHAR2(12 CHAR) NOT NULL , "ID_SOURCE" VARCHAR2(12 ...
<reponame>Shuttl-Tech/antlr_psql -- file:functional_deps.sql ln:191 expect:true CREATE TEMP VIEW fdv4 AS SELECT * FROM articles WHERE title IN (SELECT title FROM articles GROUP BY id)
<reponame>VictorAdad/sigi-api-adad ----------------------------------------------------- ----------------------------------------------------- --- OCUPACION --- Catálogo de interoperabilidad --- http://sigejupe2.pjedomex.gob.mx/sigejupe/catalogos/ocupaciones.json --- ID homologados de acuerdo a TSJ (21/12/17) ---------...
CREATE TABLE db.db_link_description ( id UUID PRIMARY KEY NOT NULL DEFAULT pg_catalog.uuid_generate_v4(), db_news_links_id UUID NOT NULL, CONSTRAINT FK_db_link_description_need_news_links_2044 FOREIGN KEY (db_news_links_id) ...
DROP TABLE qrtz2_locks; DROP TABLE qrtz2_scheduler_state; DROP TABLE qrtz2_fired_triggers; DROP TABLE qrtz2_paused_trigger_grps; DROP TABLE qrtz2_calendars; DROP TABLE qrtz2_trigger_listeners; DROP TABLE qrtz2_blob_triggers; DROP TABLE qrtz2_cron_triggers; DROP TABLE qrtz2_simple_triggers; DROP TABLE qrtz2_triggers; D...
<reponame>gerinka/EnhancedDocumentCreator CREATE DATABASE IF NOT EXISTS `mtc` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `mtc`; -- MySQL dump 10.13 Distrib 5.6.13, for Win32 (x86) -- -- Host: localhost Database: mtc -- ------------------------------------------------------ -- Server version 5.6.16 /*!40101 SET @...
<filename>septima-js-application/src/test/resources/entities/pets-public-write-roles.sql select * from pets
<reponame>UyCode/guns<gh_stars>1-10 INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1065955969982386177', 'task', '0', '[0],', 'task', '', '/task', '99', '1', '1', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`,...
<reponame>cafagna/PostgreSQLWithNearestNeighbourJoin SELECT 'flip1', ST_AsText(ST_FlipCoordinates('POINT(0 1)')); SELECT 'flip2', ST_AsText(ST_FlipCoordinates('GEOMETRYCOLLECTION(POINT(1 2),MULTIPOLYGON(((0 1,1 2,2 1,0 1)),((10 0,20 0,20 10,10 0),(2 2,4 2,4 4,2 2))),LINESTRING(0 1,1 0))')); -- Bogus calls (swapping un...
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50520 Source Host : localhost:3306 Source Database : drea Target Server Type : MYSQL Target Server Version : 50520 File Encoding : 65001 Date: 2017-06-18 00:46:53 */ SET FOREIGN_KE...
ALTER TABLE distributors ALTER COLUMN address TYPE varchar(80), ALTER COLUMN name TYPE varchar(100);
<reponame>liraxapp/ortelius<gh_stars>10-100 ALTER TABLE `avm_outputs_redeeming` DROP COLUMN chain_id;
-- @testpoint:opengauss关键字by(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists by; create schema by; --清理环境 drop schema by; --关键字带双引号-成功 drop schema if exists "by"; create schema "by"; --清理环境 drop schema "by"; --关键字带单引号-合理报错 drop schema if exists 'by'; --关键字带反引号-合理报错 drop schema if exists `by`;
<filename>resources/tables/create/urls.sql CREATE TABLE urls ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, url text, status tinyint(3), createdAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY(id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Urls info';
<filename>100.projects/autodb/temp/t17/041.CS-14709.enable.generic.file.to.existing.tenants.sql<gh_stars>0 USE t17; insert ignore into dp_enterprise_platforms values ('b6bab165-1c26-11e3-8046-d8d385e16fb6', 9); insert ignore into dp_enterprise_platforms values ('95a56952-aafd-11e3-9904-1cc1de6f6c7e', 9); insert ignore...
<gh_stars>0 CREATE TABLE user ( id INTEGER UNSIGNED PRIMARY KEY AUTO_INCREMENT, email VARCHAR(255) UNIQUE NOT NULL, hash CHAR(60) NOT NULL, name VARCHAR(255) NOT NULL ); CREATE INDEX user_email ON user(email); CREATE TABLE model ( id INTEGER UNSIGNED PRIMARY KEY AUTO_INCREMENT, manufacturer VA...
<filename>db/oms previous.sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 17, 2017 at 08:40 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
drop table if exists t_ticket; drop table if exists t_commande; create table t_commande ( comd_id integer not null primary key auto_increment, comd_email varchar(50) not null, comd_rate varchar(50) not null, comd_date datetime not null ) engine=innodb character set utf8 collate utf8_unicode_ci; create t...
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 08-11-2021 a las 18:29:08 -- Versión del servidor: 5.7.36 -- Versión de PHP: 7.3.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
CREATE TABLE [dbo].[Account] ( [Id] BIGINT NOT NULL PRIMARY KEY IDENTITY, [CreatedAt] DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, [UpdatedAt] DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, [Number] VARCHAR(10) NOT NULL, [Digit] TINYINT NOT NULL, [ShortPassword] VARCHAR(100) NOT NULL, [Password] VARCHAR(100) NOT ...
USE minors_2022; INSERT INTO shortstop_minors_tools( first_name, last_name, ORG, FHIT, FGAME_P, FRAW_P, FSPEED, FFV ) VALUES ('Bobby','<NAME>r.','Kansas City',50,60,70,60,60), ('CJ','Abrams','San Diego',70,55,55,80,60), ('Marcelo','Mayer','Bosto...
<reponame>oboforty/metaindex CREATE TABLE lipidmaps_data ( lipidmaps_id VARCHAR(20) NOT NULL, names TEXT[], category VARCHAR(32), main_class VARCHAR(64), sub_class VARCHAR(128), lvl4_class VARCHAR(128), mass FLOAT, smiles TEXT, inchi TEXT, inchikey VARCHAR(27), formula VARCHAR(256), kegg_id VARCHAR(20), h...
<reponame>bizmaercq/eda-reporting<filename>raw/UPLOAD/SI_Contract_Creation_live.sql select * from sitb_upload_master ; select * from sitb_upload_instruction; select * from cstb_ext_contract_stat; -- Truncating Tables containing upload information ; -- backup of all concerned tables create table sitb_upload_ma...
CREATE TABLE IF NOT EXISTS meeting_sessions ( meeting_id UUID primary key, presenter UUID NOT NULL, listeners UUID[] NOT NULL, started_at TIMESTAMP NOT NULL, CONSTRAINT unique_presenter UNIQUE (presenter) );
CREATE DATABASE examples; CREATE TABLE Singers ( SingerId INT64 NOT NULL, FirstName STRING(1024), LastName STRING(1024), SingerInfo BYTES(MAX), BirthDate DATE, SongIDs ARRAY<INT64>, ) PRIMARY KEY (SingerId); CREATE INDEX AlbumsByAlbumTitle ON Albums(AlbumTitle); ALTER TABLE Albums ADD COLUMN Mar...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 03, 2016 at 07:16 PM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
/* pco_powerplan_phase_offsets.sql ~~~~~~~~~~~~~~~~~~~~ Gets the phase offsets set in Oncology PowerPlans */ select powerplan = pwcat.display_description , phase = pwcat2.description , phase_duration_qty = pwcat2.duration_qty , phase_duration_unit = uar_get_code_display(pwcat2.duration_unit_cd) , pcr2.o...
ALTER TABLE links DROP CONSTRAINT shortcut_unique;
CREATE TABLE discord_messages ( id TEXT PRIMARY KEY NOT NULL, content TEXT NOT NULL );
-- original: fts3expr5.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test CREATE VIRTUAL TABLE t0 USING fts3(x); SELECT rowid FROM t0 WHERE x MATCH '' ;SELECT rowid FROM t0 WHERE x MATCH '""' ;SELECT rowid FROM t0 WHERE x MATCH '"" ""' ;SELECT rowid FROM t0 WHERE x MATCH '"" OR ""' ;SELECT rowid FRO...
<filename>database/jenis_pengajuan.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Generation Time: Feb 14, 2022 at 05:26 AM -- Server version: 10.4.22-MariaDB -- PHP Version: 7.4.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:0...
<reponame>dram/metasfresh -- 09.12.2015 15:04 -- URL zum Konzept UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2015-12-09 15:04:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=10807 ; -- 09.12.2015 15:04 -- URL zum Konzept UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('20...
//Human Chorionic Gonadotropin library HumanChorionicGonadotropin using FHIR include FHIRHelpers version '1.8' called FHIRHelpers //include otherLibrary version 'x.x' called otherLibrary //codesystem codeSystemName : 'OID' version 'x.x' //valueset valuesetName : 'OID' version 'x.x' codesystems{codeSystem1 , codeSyst...
<reponame>Salazar-Prime/Database_SQL /* Query 1 */ (SELECT Sno FROM SPJ WHERE Jno = 'J1') INTERSECT (SELECT Sno FROM SPJ WHERE Jno = 'J2'); /* Query 2 */ SELECT UNIQUE(SPJ.Sno) FROM SPJ JOIN S ON S.Sno = SPJ.Sno JOIN P ON P.Pno = SPJ.Pno JOIN J ON J.Jno = SPJ.Jno WHERE P.color = 'Red' AND J.city IN ('London','Paris');...
<gh_stars>1-10 -- -- Copyright 2009-2012 The MyBatis Team -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- --...
<reponame>Young-Guiji/MineCloud<gh_stars>1-10 /* Navicat MySQL Data Transfer Source Server : 10.203.72.183 Source Server Version : 50646 Source Host : 10.203.72.183:3306 Source Database : message_confirm Target Server Type : MYSQL Target Server Version : 50646 File Encoding : 65001 ...
<filename>data/pgroonga--2.2.9--2.3.0.sql -- Upgrade SQL CREATE FUNCTION pgroonga_result_to_recordset(result jsonb) RETURNS SETOF RECORD AS 'MODULE_PATHNAME', 'pgroonga_result_to_recordset' LANGUAGE C IMMUTABLE STRICT; CREATE FUNCTION pgroonga_result_to_jsonb_objects(result jsonb) RETURNS jsonb AS 'MODULE_PATH...
INSERT INTO `lista_equipos` VALUES (6, 1, 1, 'blanco', 'VA9K4902686', 'H553A', 'EPSON', 'Data Show # 1'); INSERT INTO `lista_equipos` VALUES (7, 1, 1, 'blanco', 'TUWK3Z00737', 'H553A', 'EPSON', 'Data Show # 2'); INSERT INTO `lista_equipos` VALUES (8, 1, 1, 'blanco', 'TUWK3Z00656', 'H553A', 'ESPON', 'Data Show # 3'); IN...
<reponame>jprider63/daedalus def Main = Match1 "abcxyz"
--Question set 1 SELECT f.title, c.name, COUNT(*) FROM category c JOIN film_category fc ON c.category_id = fc.category_id JOIN film f ON f.film_id = fc.film_id JOIN inventory i ON i.film_id = f.film_id JOIN rental r ON r.inventory_id = i.inventory_id WHERE c.name IN ('Animation','Childre...
CREATE TABLE `cartProductOption` ( `cartId` binary(16) NOT NULL, `cartProductId` binary(16) NOT NULL, `optionName` varchar(255) DEFAULT NULL, `optionValue` varchar(255) DEFAULT NULL, `cartProductOptionCreateTime` datetime(6) NOT NULL, KEY `cartId` (`cartId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
<reponame>andrew-chang-dewitt/hoops-api<filename>src/models/z_relations.sql ALTER TABLE "envelope" ADD CONSTRAINT fk_user FOREIGN KEY(user_id) REFERENCES hoops_user(id) ON DELETE CASCADE; ALTER TABLE "account" ADD CONSTRAINT fk_user FOREIGN KEY(user_id) REFER...
<filename>BlockchainAnalyser/BlockchainAnalyser/SQL/TradeStatistics2/LatestDates.sql<gh_stars>0 SELECT MAX(TradeDate) AS LastTradeDate, MAX(OfferDate) AS LastOfferDate FROM tradeStatistics2Store
<gh_stars>0 /* Create Tables */ CREATE TABLE IF NOT EXISTS datastream ( id bigserial NOT NULL, name text, description text, observationtype text, unitofmeasurement text NOT NULL, observedarea jsonb, phenomenontime_begin timestamp, phenomenontime_end timestamp, resulttime_begin timestamp, resulttime_end times...
<gh_stars>0 CREATE VIEW tiger_staging.areas (tag, id, description, geom) AS SELECT NULL AS tag, NULL AS id, NULL AS description, NULL AS geom
<filename>tos.sql -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 19, 2019 at 06:30 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
<reponame>lissethst/ProyectoSD<filename>database/database_scheme.sql create database if not exists red_social; use red_social; create table users( id int(255) auto_increment not null, role varchar(20), email varchar(255), name varchar(255), surname varchar(255), password varchar(255), nick varchar(50), bio ...
/* Server=localhost; User Id=SA; Database=IdentityOverview; password=<PASSWORD>; */ SELECT * FROM AspNetUsers; SELECT * FROM __EFMigrationsHistory; SELECT * FROM AspNetRoles; SELECT * FROM AspNetUsers; SELECT * FROM AspNetRoleClaims; SELECT * FROM AspNetUserClaims; SELECT * FROM AspNetUserLogins; SELE...
<filename>Databases Basics MSSQL Server/Functions, Triggers and Transactions/Employees by Salary Level.sql create proc usp_EmployeesBySalaryLevel(@levelOfSalary varchar(7)) as select FirstName, LastName from Employees as e where dbo.ufn_GetSalaryLevel(Salary) = @levelOfSalary go exec usp_EmployeesBySalaryLevel 'High' ...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 07-12-2016 a las 11:21:55 -- Versión del servidor: 10.1.19-MariaDB -- Versión de PHP: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
SELECT R.CODFILIAL, R.DTLANC, R.RECNUM, R.CODCONTA, R.VALOR, R.PERCRATEIO, R.CODIGOCENTROCUSTO AS CENTROCUSTO, R.ROTINAINSERT FROM PCRATEIOCENTROCUSTO R WHERE NOT EXISTS ( SELECT RECNUM FROM PCLANC L WHERE L.RECNUM = R.RECNUM );
<reponame>aleksija16/ONT<gh_stars>1-10 -- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: organizacija -- ------------------------------------------------------ -- Server version 5.7.17-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARA...
select id from store where inspection_id = $1;
SELECT * FROM [master].INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=:database;
<filename>data/train/sql/6a746ce132c8752cd0649e3044aff157ff4cebc4api_sale.sql<gh_stars>10-100 -- Sale SELECT dropIfExists('VIEW', 'api_sale', 'retail'); CREATE VIEW xtpos.api_sale AS SELECT salehead_number AS sale_number, CASE WHEN (salehead_type='S') THEN 'Sale' WHEN (salehead_type='Q') THEN 'Quot...
create table transaction ( id varchar(20) primary key, title varchar(50) not null, description text not null, amount decimal not null check(amount >0), date timestamp not null, mode_of_payment varchar(50) default '-1', essential smallint default -1 , category_id serial not null, currency_id int not null, t...
-- Copyright (c) Microsoft Corporation. -- Licensed under the MIT License. CREATE INDEX IDX_PuLocationKey ON [dw].[FactCabTrip] (PULocationKey); GO CREATE INDEX IDX_DOLocationKey ON [dw].[FactCabTrip] (DOLocationKey); GO
<filename>local_migrations/20181023003944_import_trial_tsps.sql -- Local test migration. -- This will be run on development environments. It should mirror what you -- intend to apply on production, but do not include any sensitive data. -- Update the Truss TSP contact info UPDATE transportation_service_providers SET ...
CREATE DATABASE inventarios; USE inventarios; --Usuarios proveedor CREATE TABLE usuario( idUsuario int auto_increment, nombre VARCHAR(50), pass VARCHAR(100), rol BOOLEAN, PRIMARY KEY (idUsuario) ); CREATE TABLE registroSesion( idUsuario int, resultado BOOLEAN, fecha TIMESTAMP, FOREIGN KEY (idUsuario) REFERE...
<reponame>OpenPerpetuum/OPDB-docs USE [perpetuumsa] GO -----Create All Paint defintions, configs(color), and seed in Syndicate shops PRINT N'PAINT'; DECLARE @alphaItemShop int; DECLARE @betaTM int; DECLARE @betaASI int; DECLARE @betaICS int; SET @alphaItemShop = (SELECT TOP 1 id FROM itemshoppresets WHERE name like ...
<gh_stars>0 USE employee_db; INSERT INTO department (department_name) VALUE ("Finance"), ("Business"), ("Sales"), ("Legal"), ("Engineering"); INSERT INTO roles (title, salary, department_id) VALUE ("Account Manager", 80000, 1), ("Accountant", 80000, 1), ("Intern", 65000, ...
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5512410_sys_gh4951_C_Phonecall_Schema.sql -- 2019-02-11T14:54:38.106 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD...
<reponame>kevin-Murphy-hi/streamx /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 80017 Source Host : localhost:3306 Source Schema : streamx Target Server Type : MySQL Target Server Version : 80017 File Encoding ...
<gh_stars>0 DROP DATABASE IF EXISTS gotyou_db; CREATE DATABASE gotyou_db;
show Databases; create Database Sybil; use Sybil; create table Usuarios( IdUsuario int(20) not null Primary Key, Nombre varchar(25)not null, SegundoNombre varchar(15), ApellidoPaterno varchar(15) not null, ApellidoMaterno varchar(15), Correo varchar(30) not null, Contraseña varchar(30) not nul...
create table `gateway_api_define` ( `id` varchar(50) not null, `path` varchar(255) not null, `service_id` varchar(50) default null, `url` varchar(255) default null, `retryable` tinyint(1) default null, `enabled` tinyint(1) not null, `strip_prefix` int(11) default null, `api_name` varchar(255) default nu...
{{config(enabled = target.type == 'bigquery')}} {% if var("projects_warehouse_timesheet_sources") %} {% if 'harvest_projects' in var("projects_warehouse_timesheet_sources") %} with source as ( {{ filter_stitch_relation(relation=var('stg_harvest_projects_stitch_projects_table'),unique_column='id') }} ), renamed as (...
use test; drop table if exists freeform; drop table if exists semistruct;
SET NOCOUNT ON; DECLARE @century int = 2000; DECLARE @channelName nvarchar(512) = 'com1://localhost'; DECLARE @portName nvarchar(max) = 'COM1'; DECLARE @baudRate int = 19200; DECLARE @dataBits tinyint = 8; DECLARE @parity tinyint = 0; DECLARE @stopBits tinyint = 1; DECLARE @readTimeout int = 250; DECLARE @writeTimeout...
-- -------------------------------------------------------- -- Хост: 127.0.0.1 -- Версия сервера: 5.7.19 - MySQL Community Server (GPL) -- Операционная система: Win64 -- HeidiSQL Версия: 9.4.0.5174 -- -------------------------------------------------------- /*...
<gh_stars>1-10 --implicit conversion from TIMESTAMP(L)TZ columns to collection types, in insert drop table if exists tz_test; create table tz_test (id int auto_increment, ts timestamp, tsltz timestamp with local time zone, tstz timestamp with time zone); set timezone '+10:00'; insert into tz_test(ts, tsltz, tstz) v...
<filename>sql/yjbb/603656.sql EXEC [EST].[Proc_yjbb_Ins] @Code = N'603656',@CutoffDate = N'2017-09-30',@EPS = N'0.63',@EPSDeduct = N'0',@Revenue = N'2.84亿',@RevenueYoy = N'2.05',@RevenueQoq = N'56.02',@Profit = N'6165.48万',@ProfitYoy = N'4.24',@ProfiltQoq = N'107.26',@NAVPerUnit = N'7.5456',@ROE = N'9.42',@CashPerUnit ...
<filename>conf/evolutions/default/1.sql<gh_stars>0 # --- !Ups CREATE TABLE products ( id long NOT NULL AUTO_INCREMENT PRIMARY KEY, ean long NOT NULL, name varchar DEFAULT NULL, description varchar DEFAULT NULL ); CREATE TABLE warehouses ( id long NOT NULL AUTO_INCREMENT PRIMARY KEY, code varch...
-- -- Create a database user for the test database -- -- GRANT ALL ON anaxdb.* TO anax@localhost IDENTIFIED BY 'anax'; -- Ensure UTF8 on the database connection SET NAMES utf8; -- -- Table Comment -- DROP TABLE IF EXISTS Comment; CREATE TABLE Comment ( `id` INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL, `...
<filename>Assignment/Solutions/Assignment_5.sql --Assignment-5 --1. Find the set of all employees who belong to either IT dept. or --salary is greater than employee_id of 101. select * from employees e where e.department_id=(select d.department_id from departments d where d.department_name='IT') uni...
<filename>src/Scripts/Migrate sgm_Templates and sgm_MailTemplates to wim_MailTemplates.sql begin transaction --select * from wim_MailTemplates --select * from wim_MailTemplateDefaultValuePlaceholders delete from wim_MailTemplateDefaultValuePlaceholders delete from wim_MailTemplates INSERT INTO [dbo].[wim_MailTemp...
<filename>egov/egov-bpa/src/main/resources/db/migration/main/V20191007114629__bpa_view_details_bydcrno_roleaction_dml.sql Insert into EG_ACTION (id,name,url,queryparams,parentmodule,ordernumber,displayname,enabled,contextroot,version,createdby,createddate,lastmodifiedby,lastmodifieddate,application) values (nextval('...
<gh_stars>0 \c pg_db SET search_path TO base_0_0_1, public; -- app.settings.get_jwt_claims -- app.settings.jwt_secret -- request.jwt.claim.key' ------------ -- Sets ------------ -- request.jwt.claim.user -- request.jwt.claim.scope -- request.jwt.claim.key \c pg_db; SET search_path TO base_0_0_1, public; BEGIN; ...
-- Host: 127.0.0.1:3306 CREATE DATABASE indigo; USE indigo; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; SET time_zone = "+00:00"; START TRANSACTION; DROP TABLE IF EXISTS `student`; CREATE TABLE IF NOT EXISTS `student` ( `student_id` int(11) NOT NULL AUTO_INCREMENT, `student_branch` varchar(255)...
ALTER TABLE vedtak ADD COLUMN automatisk_behandling BOOLEAN NOT NULL DEFAULT FALSE;
<gh_stars>0 DROP DATABASE IF EXISTS bamazonDB; CREATE database bamazonDB; USE bamazonDB; CREATE TABLE departments ( department_id INT(11) AUTO_INCREMENT NOT NULL, department_name VARCHAR(100), over_head_costs INT(20), PRIMARY KEY (department_id) ); INSERT INTO departments (product_name, department_name, pri...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 01, 2020 at 05:59 AM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
<reponame>DustinGerard/PsychologicalAssessmentAPI<gh_stars>0 create table if not exists anxiety ( anx_qstn integer default 0 not null constraint anxiety_pkey primary key, answer varchar, points integer, correspondence varchar, question varchar ) ; create table if not exists depression ( dep_qs...
<filename>data/open-source/extracted_sql/vegas-cmf_faker.sql<gh_stars>1-10 CREATE TABLE fake( id int not null primary key auto_increment, title varchar(250) null, content text null, email varchar(250) null, first_name varchar(250) null, last_name varchar(250) null, address varchar(250) null, date_of_birth datetime null...
<filename>gretljobs/agi_grundbuchplan_pub/agi_grundbuchplan_pub_grundbuchplan_liegenschaft.sql SELECT c.t_id, c.geometrie, c.flaechenmass, c.gem_bfs AS bfs_nr, c.numpos, d.nummer, liegen_in_mutation.mutation FROM ( SELECT a.t_id, a.liegenschaft_von, a.nu...
/*************************************************************************** * Filename: /run/media/kellermann/files/git_repo/sparkify-rdb/src/create/songplay.sql * Path: /run/media/kellermann/files/git_repo/sparkify-rdb/src/create * Created Date: Saturday, July 10th 2021, 3:08:08 pm * Author: lkellermann * * Co...
CREATE OR REPLACE VIEW SallePrixTotal(nSalle, PrixReel) as ( SELECT nSalle , sum(nombre * tarif) FROM SalleIntermediaire GROUP BY nSalle ); -- afficher les salles les plus economique -- on peut utiliser la fontion min, mais elle retourne une seule ligne. SELECT PrixReel FROM SallePrixTotal ORDER BY Pri...
<filename>database.sql -- phpMyAdmin SQL Dump -- version 2.11.9.4 -- http://www.phpmyadmin.net -- SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLAT...
<gh_stars>1-10 CREATE TABLE files ( id INT NOT NULL auto_increment primary key, permission INT NOT NULL, -- 0 is public, 1 is private owner_id INT NOT NULL, group_id INT, -- TODO: could be many groups equipment_id INT, -- file path is ./files/$(file_hash)$(file_name) file_name VARCHAR(255) ...
<reponame>Shuttl-Tech/antlr_psql -- file:create_index.sql ln:545 expect:true EXPLAIN (COSTS OFF) SELECT count(*) FROM radix_text_tbl WHERE t ~<~ 'Aztec Ct '
-- file:tsearch.sql ln:172 expect:true SELECT to_tsquery('english', 'a <-> (1 <-> 2)')
<reponame>datawaves-xyz/ethereum-etl-airflow<filename>dags/resources/stages/parse/table_definitions/balancer/view_V2_bpt_balances.sql<gh_stars>100-1000 -- MIT License -- Copyright (c) 2018 <NAME>, <EMAIL> (https://medium.com/google-cloud/plotting-ethereum-address-growth-chart-55cc0e7207b2) -- Copyright (c) 2020 Balance...
<filename>fastify-postgres/migrations/001.undo.books.sql<gh_stars>10-100 DROP TABLE IF EXISTS books
<filename>posda/posdatools/queries/sql/DicomFilesInTimepointWithNoFileSeries.sql -- Name: DicomFilesInTimepointWithNoFileSeries -- Schema: posda_files -- Columns: ['file_id'] -- Args: ['activity_timepoint_id'] -- Tags: ['queries'] -- Description: Counts query by Collection, Site -- select file_id from file f natu...
<gh_stars>1000+ # This converts old conditions which use common fields like "body" to new # conditions which use modular rules like "Maniphest Task Description". UPDATE {$NAMESPACE}_herald.herald_condition c JOIN {$NAMESPACE}_herald.herald_rule r ON c.ruleID = r.id SET c.fieldName = 'maniphest.task.title' WHER...
<reponame>muntaza/catatan_openaset_balangan DROP VIEW IF EXISTS view_sk_penghapusan_jalan_irigasi_jaringan_kabupaten; CREATE OR REPLACE VIEW view_sk_penghapusan_jalan_irigasi_jaringan_kabupaten AS SELECT jalan_irigasi_jaringan.id_sub_skpd, sub_skpd.nama_sub_skpd, sub_skpd.id_skpd, skpd.nama_skpd, skpd.id_lokasi_bi...