sql
stringlengths
6
1.05M
<filename>bases de datos/practicas/practica6/script.sql select nomm, nomh from matrim WHERE nomh in (SELECT nomh from hsim) and nomm in (select nomm from msim); select nomh, nomm from matrim where nomh in (select nomh from msim) and nomm in (select nomm from msim) and nomm in (select nomm from hsim); Select * from (S...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 1172.16.58.3 -- Tiempo de generación: 13-01-2021 a las 19:43:19 -- Versión del servidor: 10.4.8-MariaDB -- Versión de PHP: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zo...
<reponame>AxelFernandez/WebHorariosLavalle<filename>myDB.sql -- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 07-07-2020 a las 14:11:54 -- Versión del servidor: 5.7.30 -- Versión de PHP: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTO...
INSERT INTO EG_ROLEACTION VALUES ((select id from eg_role where name='Advertisement Tax Creator'),(select id from eg_action where name='Agency Wise DCB Report')); INSERT INTO EG_ROLEACTION VALUES ((select id from eg_role where name='Advertisement Tax Approver'),(select id from eg_action where name='Agency Wise DCB Repo...
alter table device_queue drop column dev_addr;
<filename>sql/00-SetupRLS.sql<gh_stars>1-10 if (user_id('MiddleTierUser') is null) begin create user MiddleTierUser with password = '<PASSWORD>'; alter role db_owner add member MiddleTierUser; end go drop security policy if exists rls.SensitiveDataPolicy; drop function if exists rls.fn_SecurityPredicate; drop table...
<filename>src/Database/tables/ProductTabs.sql<gh_stars>1-10 CREATE TABLE dbo.ProductTabs ( Id INT IDENTITY(1, 1) NOT NULL CONSTRAINT PK_ProductTabs PRIMARY KEY, ProductId INT NOT NULL CONSTRAINT FK_ProductTabs_ProductId FOREIGN KEY REFERENCES dbo.Products(Id), Title NVARCHAR(30) NOT NULL, Content NVARCHAR(MAX) NOT...
-- file:plpgsql.sql ln:4799 expect:true DROP TABLE multi_test
-- Copyright (c) 2017-2021 VMware, Inc. or its affiliates -- SPDX-License-Identifier: Apache-2.0 -- generates alter statement to modify text datatype to tsquery datatype SELECT $$ALTER TABLE $$ || n.nspname || '.' || c.relname || $$ ALTER COLUMN $$ || a.attname || $$ TYPE TSQUERY USING $$ || a.attname || $$::tsquery;$...
DROP PROCEDURE IF EXISTS insertNotification DELIMITER $$ CREATE PROCEDURE insertNotification( IN id INT, IN descripcion VARCHAR(255), IN url VARCHAR(255), IN icon VARCHAR(255)) MODIFIES SQL DATA BEGIN DECLARE loopValue INT DEFAULT 0; SET loopValue = (SELECT MIN(idUsuario) FROM usuario); WHILE loopVa...
DROP TABLE IF EXISTS FILE_INFO; CREATE TABLE FILE_INFO ( file_id BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT, file_name VARCHAR(128), file_path VARCHAR(1024), file_created BIGINT, file_last_modified BIGINT, file_owner VARCHAR(128), file_size BIGINT );
<filename>lab01_AmreetAulakh.sql USE [master] GO if exists ( select * from sysdatabases where name='aaulakh2_Lab1' ) drop database aaulakh2_Lab1 go CREATE DATABASE [aaulakh2_Lab1] GO USE [aaulakh2_Lab1] GO -- generating tables CREATE TABLE [dbo].[Class] ( [ClassID] nvarchar (50) no...
<filename>src/test/resources/jp/co/tis/gsp/tools/dba/mojo/GenerateEntity_test/view/sqlserver/ddl/40_CREATE_VIEW3.sql CREATE VIEW VIEW3 AS SELECT ORDER_TEST.ORDER_ID AS OID, ORDER_TEST.CUSTOMER AS CUSTOMER_NAME FROM ORDER_T ORDER_TEST WHERE EXISTS (SELECT * FROM ORDER_DETAIL as OD WHERE ORDER_TEST.ORDER_DETAIL_ID = OD....
CREATE PROCEDURE [dbo].[dbx_codeanalysis_error_019] AS TRUNCATE TABLE [dbo].[dbx_table]
<reponame>wsams/talk2me CREATE TABLE `rooms` ( `id` INT AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL UNIQUE, PRIMARY KEY(`id`) ); CREATE TABLE `messages` ( `id` INT AUTO_INCREMENT, `rooms` INT NOT NULL, `encrypted` BIT(1) NOT NULL, `message` TEXT NULL, `timestamp` TIMESTAMP DEFAULT CURR...
<reponame>radekg/kratos CREATE TABLE "_continuity_containers_tmp" ( "id" TEXT PRIMARY KEY, "identity_id" char(36), "name" TEXT NOT NULL, "payload" TEXT, "expires_at" DATETIME NOT NULL, "created_at" DATETIME NOT NULL, "updated_at" DATETIME NOT NULL, FOREIGN KEY (identity_id) REFERENCES identities (id) ON UPDATE NO ACTIO...
grant delete, select, insert, update on SIMPLE_CONTENT_REVISION to vrtx; grant delete, select, insert, update on REVISION_ACL_ENTRY to vrtx; grant delete, select, insert, update on ACL_ENTRY to vrtx; grant delete, select, insert, update on ACTION_TYPE to vrtx; grant delete, sel...
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY,value LONGVARCHAR); INSERT INTO "meta" VALUES('version','40'); INSERT INTO "meta" VALUES('last_compatible_version','40'); INSERT INTO "meta" VALUES('Default Search Provider ID','2'); INSERT INTO "meta" VALUES('Defa...
<filename>sql/_27_banana_qa/issue_5765_timezone_support/_00_dev_cases/_01_object/_02_timestamptz/cases/1016.sql -- create table with timestamptz data type and insert numberic data CREATE CLASS t1( col1 timestamptz ); INSERT INTO t1 VALUES (1111111111); drop t1;
<filename>sql/_27_banana_qa/issue_5765_timezone_support/_00_dev_cases/_02_operator/_03_extract_local_tz/cases/1005.sql -- [er]retrieve by function of extract using parameter of second that don't match on date data type set timezone '+9:00'; create class func_05 ( a timestampltz , b date, c time ); insert into func_05...
<filename>Cloud-Server/PHP/database/AngelsGate.sql -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 13, 2018 at 08:42 AM -- Server version: 10.1.35-MariaDB-cll-lve -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0;...
-- -- Create the tables needed for fsso. -- -- Run this with the mysql command: -- -- $ mysql -u <mysqluser> -p <dbname> < schema.sql -- -- Or from the mysql shell: -- -- mysql> source schema.sql -- -- -- One entry per registered user. Additional fields may be added as needed. -- CREATE TABLE `fsso_members` ( ...
<reponame>vicepool/guild-operators CREATE OR REPLACE FUNCTION grest.pool_delegator_count(_pool_bech32 text) RETURNS JSON STABLE LANGUAGE PLPGSQL AS $$ BEGIN RETURN ( SELECT json_build_object( 'delegator_count', COUNT(*) ) FROM public.delegation d WHERE pool_hash_id = (SELECT id from public.pool_...
-- Add new configuration value for AutoNumberingResetMonth set @query = if ((select count(*) from `tblconfiguration` where `setting` = 'AutoNumberingResetMonth') = 0, "INSERT INTO `tblconfiguration` (`setting`, `value`, `created_at`, `updated_at`) VALUES ('AutoNumberingResetMonth', CONCAT_WS('-', YEAR(CURRENT_DATE()), ...
<reponame>NimbusServices/SAEON.ObservationsDatabase insert into SchemaColumnType (Name, Description, UserId) values ('Latitude','A latitude column',(Select UserID from aspnet_Users where (UserName = 'TimPN'))), ('Longitude','A longitude column',(Select UserID from aspnet_Users where (UserName = 'TimPN'))), ('El...
<gh_stars>0 SELECT id FROM northwind.products ORDER BY id DESC LIMIT 5;
CREATE TABLE chores ( id SERIAL PRIMARY KEY, title text, person text, due_date date, done_at timestamp ); INSERT INTO chores (title, person, due_date) VALUES ( 'Make your bed', 'Lily', NOW() ), ( 'Make your b...
<gh_stars>0 DROP TABLE pCustomer CASCADE CONSTRAINTS PURGE; DROP TABLE County CASCADE CONSTRAINTS PURGE; DROP TABLE Courier CASCADE CONSTRAINTS PURGE; DROP TABLE Parcel CASCADE CONSTRAINTS PURGE; CREATE TABLE pCustomer ( cNo NUMBER(6) NOT NULL , cName VARCHAR2(30) NOT NULL...
<filename>GRA.Database/dbo/Stored Procedures/app_MGMixAndMatch_Update.sql  /****** Object: StoredProcedure [dbo].[app_MGMixAndMatch_Update] Script Date: 01/05/2015 14:43:22 ******/ --Create the Update Proc CREATE PROCEDURE [dbo].[app_MGMixAndMatch_Update] ( @MMID INT, @MGID INT, @CorrectRoundsToWinCount INT, @...
<filename>hair_salon_test.sql -- phpMyAdmin SQL Dump -- version 4.6.5.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Mar 05, 2017 at 09:08 AM -- Server version: 5.6.34 -- PHP Version: 7.1.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_...
<reponame>affinitas/pg_dml_audit<gh_stars>1-10 -- -- save full tabel as json-array -- SET search_path TO _pg_dml_audit_model; -- CREATE OR REPLACE FUNCTION if_modified_func() RETURNS TRIGGER AS $body$ DECLARE audit_row _pg_dml_audit_model.events; query_text TEXT; all_rows JSON [] := '{}'; anyrow RECOR...
<filename>packages/inflection/verify/schemas/inflection/procedures/singular.sql -- Verify schemas/inflection/procedures/singular on pg BEGIN; SELECT verify_function ('inflection.singular'); ROLLBACK;
UPDATE _database_test SET n=0;
/****** Object: Table [DbScriptMigration] ******/ IF OBJECT_ID (N'DbScriptMigration', N'U') IS NULL BEGIN CREATE TABLE [dbo].[DbScriptMigration]( [MigrationId] [uniqueidentifier] NOT NULL, [MigrationName] [nvarchar](250) NOT NULL, [MigrationDate] [datetime] NOT NULL, CONSTRAINT [PK_DbScriptMigration] PRIMARY ...
<gh_stars>10-100 DROP TABLE IF EXISTS `church_location`; CREATE TABLE `church_location` ( `location_id` INT NOT NULL, `location_typeId` INT NOT NULL, `location_name` VARCHAR(256) NOT NULL, `location_address` VARCHAR(45) NOT NULL, `location_city` VARCHAR(45) NOT NULL, `location_state` VARCHAR(45) NOT NULL, ...
<gh_stars>10-100 -- file:rowtypes.sql ln:74 expect:true select (fn).first, substr((fn).last, 1, 20), length((fn).last) from people
<gh_stars>100-1000 CREATE TABLE list (id VARCHAR(10) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "list" ("id", "value") VALUES ('AFA', 'Afegane (1927–2002)'); INSERT INTO "list" ("id", "value") VALUES ('AFN', 'Afegane afegão'); INSERT INTO "list" ("id", "value") VALUES ('MGA', 'Ariary malgaxe')...
<reponame>NathanHowell/sqlfluff<filename>test/fixtures/parser/ansi/select_o.sql -- Between and Not Between -- https://github.com/sqlfluff/sqlfluff/issues/142 -- https://github.com/sqlfluff/sqlfluff/issues/478 SELECT business_type FROM benchmark_summaries WHERE avg_click_rate NOT BETWEEN 0 and 1 + 1 + some_v...
<reponame>dram/metasfresh<filename>backend/de.metas.swat/de.metas.swat.base/src/main/sql/postgresql/system/48-de.metas.inoutcandidate/5563930_sys_gh7012ValidationMessagesAndNewProcess.sql -- 2020-07-21T07:54:21.336Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Message (AD_Client_ID,A...
-- 2019-05-28T08:39:12.435 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,576774,0,TO_TIMESTAMP('2019-05-28 08:39:12','YYYY-MM-DD HH24:MI:SS'),100...
<filename>backend/de.metas.inbound.mail/src/main/sql/postgresql/system/90-de.metas.inbound.mail/5500290_sys_gh4524_C_InboundMailConfig_EnableRemoteCacheInvalidation.sql -- 2018-08-30T17:29:43.848 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET IsEnableRemoteCacheInvalidation='Y',Up...
<gh_stars>0 CREATE OR REPLACE FUNCTION utils.populatematerialhierarchytable() RETURNS void LANGUAGE sql AS $function$ TRUNCATE TABLE utils.material_hierarchy; WITH material_hierarchyquery AS ( SELECT h.name materialcsid, regexp_replace(cnc.refname, '^.*\)''(.*)''$', '\1') material, rc.object...
<gh_stars>0 SELECT TOP(3)emp.EmployeeID, emp.FirstName FROM Employees AS emp FULL JOIN EmployeesProjects AS EmpProj ON emp.EmployeeID = EmpProj.EmployeeID WHERE EmpProj.ProjectID IS NULL ORDER BY EmployeeID
USE [Certificate_Administration] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ====================================================================== -- Author: <NAME> -- Creation date: October 22, 2021 -- Description: Creates a certificate for a SourceGroup, signs -- all Sourc...
-- 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. IF OBJECT_ID('auth.StudentUSIToEducationOrganizati...
<filename>projects/blog1/sql/db.sql CREATE TABLE Posts ( ID INT PRIMARY KEY auto_increment, title VARCHAR(100), created TIMESTAMP, lastChanged TIMESTAMP, content CLOB, tags VARCHAR(255) ); insert into posts(title, created, lastchange...
SELECT DISTINCT CITY FROM STATION where not regexp_like (CITY, '^(A|E|I|O|U)') or not regexp_like (CITY, '(a|e|i|o|u)$');
<gh_stars>100-1000 -- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. column fvar_ksmfsnam heading SGAVARNAME for a30 column fvar_ksmfstyp heading DATATYPE for a30 column fval_ksmmval_dec heading V...
<reponame>nenadnoveljic/tpt-oracle -- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. -- DBA_REWRITE_EQUIVALENCES -- Name Null? Type -- -------------------------------...
ALTER TABLE experiment_run ADD PRIMARY KEY (id); ALTER TABLE experiment_config ADD PRIMARY KEY (id);
SELECT hostname() = hostName();
<filename>sql/_01_object/_03_virtual_class/_001_basic/cases/1005.sql -- [er]create hash partition table with int field having size 4 and create view using 2nd partition create class t1 ( col1 int not null , col2 int not null, col3 int not null, col4 integer, col5 numeric, col6 numeric, col7 numeric, col8 numer...
CREATE OR REPLACE FUNCTION calculate_equity(action_time timestamp, content_item_id bigint) RETURNS double precision AS $$ BEGIN RETURN SUM(calculate_equity(activity.created, action_time, activity.equity, activity.dtype)) FROM activity WHERE (activity.contentitem_id = content_item_id) AND (activity.created...
<filename>common/src/main/resources/db/migration/V129__2020-07-14_modreg_recordedmodreg.sql -- This is just for the benefit of Hibernate's stupid face create view moduleregistration_recordedmoduleregistration as select mr.id as module_registration_id, rmr.id as recorded_module_registration_id from moduleregist...
<filename>shimbilabs.sql -- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Feb 09, 2022 at 04:13 AM -- Server version: 5.7.36-cll-lve -- PHP Version: 7.3.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone =...
 insert into [AFEDive].[LIST_ASSOCIATION] Values('574c70df-b46c-49b2-9ab8-abf4ffcba855','BPX','RP',null,0,0); insert into [AFEDive].[LIST_ASSOCIATION] Values('bd755388-7798-4177-8868-3610253a0376','MUD Company','RP',null,0,0); insert into [AFEDive].[LIST_ASSOCIATION] Values('fe0a2b1f-3c15-4f07-988f-36a633c444a9',...
CREATE TABLE `employee` ( `id` int(3) NOT NULL, `first_name` varchar(20) DEFAULT NULL, `last_name` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ;
<reponame>hdelgadillo/main_micro SELECT A.nombres, A.apellidoP,A.apellidoM,G.calificacion from Alumnos.A,Grupo.G Order By calificacion;
<gh_stars>0 SELECT * FROM bd_inventaire.coor_temp where mac = 710 order by mac; -- 1.- SELECT * FROM bd_inventaire.coor_temp; -- 2.- select * from `bd_inventaire`.`tinvmaster` as a inner join bd_inventaire.coor_temp as b on trim(a.poste)=trim(b.mac) order by mac; -- 3.- update `bd_inventaire`.`tinvmaster` as a set sha...
USE [AnyDatabaseName] GO IF OBJECT_ID('dbo.[DF_bnkCustomer_CustomerTicket]', 'D') IS NOT NULL ALTER TABLE [dbo].[bnkCustomer] DROP CONSTRAINT [DF_bnkCustomer_CustomerTicket] GO /****** Object: Table [dbo].[bnkCustomer] - Script Date: 04/27/2018 22:35 ******/ IF OBJECT_ID('dbo.[bnkCustomer]', 'U') IS NOT NULL DROP ...
<reponame>udakita/toko_indonesia -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 29, 2018 at 12:53 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
CREATE TABLE IF NOT EXISTS apps ( id varchar(255) PRIMARY KEY, "key" varchar(255) NOT NULL, secret varchar(255) NOT NULL, max_connections integer NOT NULL, enable_client_messages smallint NOT NULL, "enabled" smallint NOT NULL, max_backend_events_per_sec integer NOT NULL, max_client_event...
<filename>undergrad/dbscratch/learn-db/hw/hw38_09.sql SELECT doc_id, document_title FROM indexed_docs WHERE document_tokens @@ to_tsquery('die & democracy') ;
SHOW TOPICS;
-------------------------------------------------------- -- DDL for Table ALL_SPCODES -------------------------------------------------------- CREATE TABLE "GROUNDFISH"."ALL_SPCODES" ( "SOURCE" VARCHAR2(4 BYTE), "RESEARCH" NUMBER, "SCIENTIF" VARCHAR2(50 BYTE), "COMMON" VARCHAR2(50 BYTE), "TSN" NUMBER, ...
<filename>modules/boonex/organizations/updates/13.0.0_13.0.1/install/sql/enable.sql -- PAGES DELETE FROM `sys_pages_blocks` WHERE `object`='bx_organizations_view_profile' AND `title` IN ('_bx_orgs_page_block_title_cover_block', '_bx_orgs_page_block_title_profile_friends_mutual'); INSERT INTO `sys_pages_blocks`(`objec...
-- -- Name: kartoza_fba_generate_excel_all_flood_events(); Type: FUNCTION; Schema: public; Owner: - -- DROP FUNCTION IF EXISTS public.kartoza_fba_generate_excel_all_flood_events; CREATE FUNCTION public.kartoza_fba_generate_excel_all_flood_events() RETURNS character varying LANGUAGE plpython3u AS $_$ res = p...
-- -------------------------------- -- MM-Wiki 表结构 -- author: phachon -- -------------------------------- -- 手动安装时首先需要创建数据库 -- CREATE DATABASE IF NOT EXISTS mm_wiki DEFAULT CHARSET utf8; -- -------------------------------- -- 用户表 -- -------------------------------- DROP TABLE IF EXISTS `mw_user`; CREATE TABLE `mw_use...
-- MySQL dump 10.15 Distrib 10.0.35-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: exomevcfe -- ------------------------------------------------------ -- Server version 10.0.35-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER...
CREATE TABLE CUSTOMERS ( ID VARCHAR(40) PRIMARY KEY, NAME VARCHAR(255) NOT NULL );
<gh_stars>10-100 -- 节点表加入V2ray加密方式 ALTER TABLE `ss_node` ADD COLUMN `v2_method` VARCHAR(32) NOT NULL DEFAULT 'aes-128-gcm' COMMENT 'V2ray加密方式' AFTER `v2_port`;
<gh_stars>10-100 CREATE TABLE `admin_location_requested` ( `id_admin_location_requested` int(11) unsigned NOT NULL AUTO_INCREMENT, `id_admin` int(11) unsigned DEFAULT NULL, `status` enum('permitted','denied') DEFAULT 'permitted', `date` datetime DEFAULT NULL, PRIMARY KEY (`id_admin_location_requested`), KEY...
create view "postgres"._airbyte_test_normalization_namespace."simple_stream_with_n__lting_into_long_names_ab3__dbt_tmp" as ( -- SQL model to build a hash column based on the values of this record select md5(cast(coalesce(cast("id" as varchar ), '') || '-' || coalesce(cast("date" as varchar ), '') ...
/* Navicat Premium Data Transfer Source Server : L Venus - 192.168.31.102 Source Server Type : MySQL Source Server Version : 80011 Source Host : 192.168.31.102:3306 Source Schema : album Target Server Type : MySQL Target Server Version : 80011 File Encoding : 65001 D...
<gh_stars>1-10 INSERT INTO "managers" ("managerId", "name", "alias") VALUES (1, '<NAME>', 'John'); INSERT INTO "managers" ("managerId", "name", "alias") VALUES (2, '<NAME>', 'Lee'); INSERT INTO "managers" ("managerId", "name", "alias") VALUES (3, '<NAME>', 'Scott'); INSERT INTO "managers" ("managerId", "name", "alias")...
-- file:insert_conflict.sql ln:96 expect:true insert into insertconflicttest values (1, 'Apple'), (2, 'Orange') on conflict (key) do update set (fruit, key) = (excluded.fruit, excluded.key)
<reponame>jkvetina/BUG<filename>views/nav_badges.sql CREATE OR REPLACE FORCE VIEW nav_badges AS SELECT 900 AS page_id, ' ' AS page_alias, TO_CHAR(NULLIF(COUNT(*), 0)) AS badge FROM logs l WHERE l.created_at >= app.get_date() AND l.creat...
<filename>src/spatial-1-merge-stations.sql begin; drop table if exists overlapping_stations; drop table if exists station_set; drop table if exists merged_stations; create table overlapping_stations ( a_id integer not null, b_id integer not null, primary key (a_id, b_id) ); create table station_set ( s...
-- -- Query demand of dockless vehicles for the next hour -- -- Define function to represent the SageMaker model and endpoint for the prediction -- In Athena you can access SageMaker endpoints for ML inference as external function with the keyword SAGEMAKER -- and the name of the endpoint. THis is the definition of ...
<filename>Python/Unittest/Fixtures/create_db.sql -- Drop table if it exists to start from scratch DROP TABLE IF EXISTS projects; -- Create projects table CREATE TABLE projects ( project_id INTEGER PRIMARY KEY ASC AUTOINCREMENT, project_name TEXT NOT NULL, start_date TEXT NOT NULL, end_date TEXT, CON...
<reponame>arinichevN/gwu74 CREATE TABLE "device" ( "id" INTEGER PRIMARY KEY, "i2c_path" TEXT NOT NULL, "i2c_addr" INTEGER NOT NULL-- to get chip address in hex format (for Banana Pi): i2cdetect -y -a 2; convert it to decimal and put here ); CREATE TABLE "pin" ( "net_id" INTEGER NOT NULL, "device_id" INTEGER ...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Mar 31, 2021 at 01:28 AM -- Server version: 5.7.31 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
CREATE TYPE accessibility_request_status AS ENUM ('OPEN', 'IN_REMEDIATION', 'CLOSED'); CREATE TABLE accessibility_request_status_records ( id uuid PRIMARY KEY not null, request_id uuid REFERENCES accessibility_requests(id) NOT NULL, status accessibility_request_status NOT NULL DEFAULT 'OPEN', created_a...
<reponame>tharangar/k8s-webserver -- POCOR-2780 -- INSERT INTO `db_patches` (issue, created) VALUES ('POCOR-2780', NOW()); INSERT INTO `import_mapping` (`id`, `model`, `column_name`, `description`, `order`, `foreign_key`, `lookup_plugin`, `lookup_model`, `lookup_column`) VALUES (81, 'Institution.Staff', 'institution_...
<reponame>serkef/covid_bot CREATE TABLE IF NOT EXISTS raw_daily_data ( id SERIAL, ts TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, rec_dt DATE NOT NULL, rec_territory TEXT NOT NULL, rec_value NUMERIC, CONSTRAINT unique_entry UNIQUE(rec_dt, rec_territory, rec_value) )
<gh_stars>1000+ select fun from {{ ref('model_one') }}
<reponame>ghJo-Gaia3D/mago3d -- 데이터 그룹 (알파돔, 시립대) INSERT INTO data_group(data_group_id, data_group_key, data_group_name, data_group_path, data_group_target, sharing, user_id, ancestor, parent, depth, view_order, children, basic, available, tiling, data_count, location, altitude, metainfo) VALUES ...
DROP DATABASE IF EXISTS `cfboom_test`; CREATE DATABASE `cfboom_test` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; USE `cfboom_test`; -- -- Table structure for table `All_Types` -- DROP TABLE IF EXISTS `All_Types`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 ...
-- 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 [edfi].[AbsenceEventCategoryDescriptor...
<gh_stars>1-10 /*-- EXEC tSQLt.DropClass [dbo_CalculateDiscountTests]; GO --*/ CREATE SCHEMA [dbo_CalculateDiscountTests] AUTHORIZATION [tSQLt.TestClass]; GO CREATE PROCEDURE dbo_CalculateDiscountTests.[test returns no discount for order value 49.00] AS BEGIN --Assemble --Act DECLARE @Actual NUMERIC(13,2) = (SE...
CREATE FUNCTION [dal].[ft_Time1__Center_Agent_Resource_Balance] ( @AccountTypeConcept NVARCHAR (255), @AgentDefinitionCode NVARCHAR(255), @ResourceDefinitionCode NVARCHAR(255), @AsOfDate DATE, @ParentCenterId INT ) RETURNS @returntable TABLE ( [CenterId] INT, [AgentId] INT, [ResourceId] INT, [AsOf] DATE, ...
<reponame>isuruuy429/product-ei<filename>integration/dataservice-hosting-tests/tests-integration/tests/src/test/resources/artifacts/DSS/sql/h2/CreateTablesAccount.sql<gh_stars>100-1000 CREATE TABLE IF NOT EXISTS Accounts( accountId INTEGER NOT NULL AUTO_INCREMENT, balance DOUBLE, PRIMARY KEY (ac...
-- -- BOX -- -- -- box logic -- o -- 3 o--|X -- | o| -- 2 +-+-+ | -- | | | | -- 1 | o-+-o -- | | -- 0 +---+ -- -- 0 1 2 3 -- -- boxes are specified by two points, given by four floats x1,y1,x2,y2 CREATE TABLE BOX_TBL (f1 box); INSERT INTO BOX_TBL (f1) VALUES ('(2.0,2.0,0.0,0.0)'); INSERT INTO BOX_TBL ...
-- -- SELECT_INTO -- SELECT * INTO TABLE sitmp1 FROM onek WHERE onek.unique1 < 2; DROP TABLE sitmp1; SELECT * INTO TABLE sitmp1 FROM onek2 WHERE onek2.unique1 < 2; DROP TABLE sitmp1; -- -- SELECT INTO and INSERT permission, if owner is not allowed to insert. -- CREATE SCHEMA selinto_schema; CREAT...
<filename>modules/comments/queries/schemas/bayesion.sql CREATE TABLE IF NOT EXISTS `b8_words` ( `id` bigint unsigned NOT NULL auto_increment, `word` varchar(30) NOT NULL, `ham` bigint unsigned NULL, `spam` bigint unsigned NULL, PRIMARY KEY (`id`), INDEX (`word`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE...
ALTER TABLE country ADD max_lat REAL NULL; ALTER TABLE country ADD max_lng REAL NULL; ALTER TABLE country ADD min_lat REAL NULL; ALTER TABLE country ADD min_lng REAL NULL;
set names utf8; SELECT '韩国', JSON_ARRAY('中国', '韩国') AS json_data; SELECT '首尔', JSON_OBJECT('city','首尔') as json_data;
<gh_stars>0 -- MySQL dump 10.13 Distrib 8.0.21, for Linux (x86_64) -- -- Host: 192.168.8.2 Database: jay2 -- ------------------------------------------------------ -- Server version 5.5.44-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@C...
<filename>estoque_mercearia_banco_teste.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 30-Mar-2017 às 07:21 -- Versão do servidor: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 S...
<reponame>cscl-git/digit-bpa<filename>egov/egov-edcr/src/main/resources/db/migration/main/V20180514182044__edcr_application_add_columns.sql<gh_stars>0 Alter TABLE edcr_application ADD COLUMN occupancy CHARACTER VARYING (256); Alter TABLE edcr_application ADD COLUMN applicantname CHARACTER VARYING (256); Alter TAB...