sql
stringlengths
6
1.05M
<gh_stars>100-1000 SELECT * FROM ROLE_FUNCTIONS WHERE DELETE_FLAG = 0 ORDER BY INSERT_DATETIME %s;
ALTER TABLE {$NAMESPACE}_pholio.pholio_mock DROP originalName;
SELECT toInt32([toUInt8(NULL)], NULL), (mapSubtract(([toUInt8(256), 10], [toInt32(-9223372036854775808), 1025]), ([toUInt8(65535), 0], [toInt16(0.), -9223372036854775808])), [toUInt8(-1), toInt32(([toUInt8(9223372036854775807), -1], [toInt32(255), 65536]), NULL)]), toUInt8(([2, 9223372036854775807], [toFloat32('0.00000...
INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (116317,517,27,0); INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (116317,539,5,0); INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (116317,575,740,0); INSERT INTO persediaan (id_transaksi, id_barang, j...
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: dbispconfig -- ------------------------------------------------------ -- Server version 5.5.37-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARAC...
<reponame>yuting1214/Financial_proj Create TABLE Daily_total_return_index ( Date DATE NOT NULL, Taiex_open NUMERIC(8, 2), Taiex_max NUMERIC(8, 2), Taiex_min NUMERIC(8, 2), Taiex_close NUMERIC(8, 2), TPEx_open NUMERIC(8, 2), TPEx_max NUMERIC(8, 2), TPEx_min NUMERIC(8, 2), TPEx_close NUMERIC(8, 2) )
-- ================================================================================================ -- Cursor template. -- Declare the variables required to hold the data from each column. -- Declare the CURSOR, should be followed by the SELECT statement that only returns the columns that match the variables. -- Open ...
<reponame>yuekui2/azure-quickstart-templates<gh_stars>0 --//---------------------------------------------------------------- --// Copyright (c) Microsoft Corporation. All rights reserved. --//---------------------------------------------------------------- SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- Version...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 18, 2021 at 03:52 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- AlterTable ALTER TABLE "User" ALTER COLUMN "complement" DROP NOT NULL;
<reponame>yani-valeva/Databases-Basics-MySQL SELECT `first_name`, `last_name` FROM `employees` ORDER BY `salary` DESC LIMIT 5;
# Write your MySQL query statement below with details as ( select account, sum(amount) as balance from transactions group by account having balance > 10000 ) select name,balance from users join details on users.account = details.account
<reponame>Tomoka64/isucon7-final CREATE TABLE `m_item` ( `item_id` int(11) NOT NULL, `power1` bigint(20) NOT NULL, `power2` bigint(20) NOT NULL, `power3` bigint(20) NOT NULL, `power4` bigint(20) NOT NULL, `price1` bigint(20) NOT NULL, `price2` bigint(20) NOT NULL, `price3` bigint(20) NOT NULL, `price4...
declare @userId int = (select Id from Users where Username = 'Alex'); declare @userGameId int = (select Id from UsersGames where GameId = (select Id from Games where Name = 'Edinburgh')); declare @blackguardId int = (select Id from Items where Name = 'Blackguard'); declare @bottomlessPotionofAmplificationId int = (sele...
<filename>sqls/getOutagesBetweenDates.sql<gh_stars>0 SELECT rto.ID AS pwc_id, rto.ELEMENT_ID, rto.ELEMENTNAME AS ELEMENT_NAME, rto.ENTITY_ID, ent_master.ENTITY_NAME, gen_unit.installed_capacity AS CAPACITY, rto.OUTAGE_DATE AS OUTAGE_DATETIME, rto.REVIVED_DATE AS REVIVED_DATETIME, rto.CREATED_DATE AS CREATED_DA...
<filename>SqlWatch.Monitor/Project.SqlWatch.Database/dbo/Tables/sqlwatch_logger_perf_file_stats.sql CREATE TABLE [dbo].[sqlwatch_logger_perf_file_stats] ( [sqlwatch_database_id] smallint not null, --[database_create_date] datetime not null default '1900-01-01', [sqlwatch_master_file_id] smallint not null, [num_of_...
USE [master] GO DROP DATABASE [azure-mobile-apps-test] GO CREATE DATABASE [azure-mobile-apps-test] GO USE [azure-mobile-apps-test] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[integration]( [id] [varchar](50) NOT NULL, [string] [varchar](50) NULL, [number] [float] NULL, [bool] [bit] N...
<reponame>irperez/RepositoryPattern USE [master] GO /****** Object: Database [UniversityDB] Script Date: 11/7/2018 11:36:35 AM ******/ CREATE DATABASE [UniversityDB] CONTAINMENT = NONE ON PRIMARY ( NAME = N'UniversityDB', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\Univers...
SELECT Name FROM Towns ORDER BY Name SELECT Name FROM Departments ORDER BY Name SELECT FirstName, LastName, JobTitle, Salary FROM Employees ORDER BY Salary DESC
-- 2020-12-08T08:46:45.433Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=627666 ; -- 2020-12-08T08:46:45.441Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=627666 ; -- 2020-12-08T08:46:45...
USE [pims] GO INSERT [dbo].[PIMS_PROPERTY] ([PROPERTY_ID], [PROPERTY_MANAGER_ID], [PROP_MGMT_ORG_ID], [PROPERTY_TYPE_CODE], [PROPERTY_CLASSIFICATION_TYPE_CODE], [ADDRESS_ID], [REGION_CODE], [DISTRICT_CODE], [PROPERTY_AREA_UNIT_TYPE_CODE], [PROPERTY_STATUS_TYPE_CODE], [SURPLUS_DECLARATION_TYPE_CODE], [PROPERTY_DATA_SOUR...
-- -- add thumbnail index option to photosets -- \connect - jcms INSERT INTO updatelog (name,value) VALUES ('db_version','20100729'); ALTER TABLE photosets ADD COLUMN thumbnailindex boolean NOT NULL DEFAULT false; ALTER TABLE photosets ADD COLUMN thumbnailcolumns int NOT NULL DEFAULT 4; INSERT INTO stylesheet VALUE...
<filename>traveldb/abstract/def_e_msgsql.sql /**************************************************************/ /* */ /* yafra.org */ /* */ /* sql messages defini...
<reponame>jszinai/eia_scrape<filename>queries_to_create_db_backup_tables_for_testing.sql -- Copyright 2020. All rights reserved. Written in 2020 by <NAME> -- Licensed under the Apache License, Version 2.0 which is in LICENSE.txt -- This script creates backup tables (copies of the original db tables) of all the tables ...
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for academy -- ---------------------------- DROP TABLE IF EXISTS `academy`; CREATE TABLE `academy` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '学院id', `name` varchar(20) DEFAULT NULL COMMENT '学院名称', PRIMA...
DROP INDEX IF EXISTS "identities_nid_idx";
create table settings ( id INTEGER primary key autoincrement, track_time_on_weekend integer );
<reponame>yacon/koala-framework<filename>Kwc/Basic/Table/Trl/Update/3.sql ALTER TABLE `kwc_basic_table_data_trl` DROP PRIMARY KEY ; ALTER TABLE `kwc_basic_table_data_trl` ADD `master_id` INT NOT NULL; UPDATE `kwc_basic_table_data_trl` SET master_id=id; ALTER TABLE `kwc_basic_table_data_trl` ADD INDEX ( `id` ); ALTER ...
<filename>hgsf_dump.sql<gh_stars>1-10 -- MySQL dump 10.13 Distrib 5.7.33, for Linux (x86_64) -- -- Host: localhost Database: hgsf -- ------------------------------------------------------ -- Server version 5.7.33-0ubuntu0.16.04.1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @O...
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字owner(非保留),表空间模式指定为用户,改变表空间所有者 CREATE ROLE joe IDENTIFIED BY '<PASSWORD>'; CREATE ROLE jay IDENTIFIED BY '<PASSWORD>'; CREATE TABLESPACE ds_location2 OWNER joe RELATIVE LOCATION 'tablespace/tablespace_1'; ALTER TABLESPACE ds_location2 OWNER TO jay; DROP TABLE...
-- @testpoint:opengauss关键字statistics(非保留),作为角色名 --关键字不带引号-成功 drop role if exists statistics; create role statistics with password '<PASSWORD>' valid until '2020-12-31'; drop role statistics; --关键字带双引号-成功 drop role if exists "statistics"; create role "statistics" with password '<PASSWORD>' valid until '2020-12-31'; ...
<reponame>lancelotzx/cxbikeTEST_logreader /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50734 Source Host : localhost:3306 Source Schema : ry_uni Target Server Type : MySQL Target Server Version : 50734 File Encod...
-- Cerinta nr 8 -- Administratorii site-ului vor sa stie pentru fiecare categorie de produse, -- care e depozitul care detine cea mai mare cantitate de produse din acea -- categorie. -- Avem nevoie de tabelele Categorie, Produs, si DisponibilitateDepozit set serveroutput on; -- Functia va returna numarul de Categor...
<reponame>JelF/rest-psql-web-server --- requires ./utils.sql DROP TYPE IF EXISTS app.user_form CASCADE; CREATE TYPE app.user_form AS ( email text, password text, password_confirmation text ); DROP TYPE IF EXISTS app.user_form__data CASCADE; CREATE TYPE app.user_form__data AS ( email text, password data.pass...
<reponame>appleboy/bbgo -- +goose Up CREATE TABLE `trades` ( `gid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `id` BIGINT UNSIGNED, `exchange` VARCHAR(24) NOT NULL DEFAULT '', `symbol` VARCHAR(7) NOT NULL, `price` DECIMAL(16, 8) UNSIGNED NOT NULL, `quantity` DECIMAL(16, 8) UNSIGNED NOT NULL, `quote_quantit...
-------------------------------------------------------------------------------- -- REST SCHEDULER -------------------------------------------------------------- -------------------------------------------------------------------------------- /** * Запрос данных в формате REST JSON API (Планировщик). * @param {text} ...
<reponame>klightspeed/eddn-index-update<gh_stars>0 CREATE VIEW `SystemNames` AS SELECT `s`.`Id` AS `Id`, `s`.`ModSystemAddress` AS `ModSystemAddress`, `s`.`SystemAddress` AS `SystemAddress`, `s`.`X` AS `X`, `s`.`Y` AS `Y`, `s`.`Z` AS `Z`, CASE WHEN `n`.`Name` IS NOT NULL THEN `n`.`Na...
<filename>src/main/resources/other_useful.sql INSERT INTO portfolio_operations (portfolio, symbol, vol_percent, date_added, type,price, record_date, uniqueness) VALUES ('Momentum Trader', 'CSBR', 0.1275, '2018-09-19', 'long_init', NULL, '2018-09-19', 'asdfasf'); -- look for duplications SELECT t1.id, t1.portfolio, t...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 05 Jul 2021 pada 07.00 -- Versi server: 10.4.13-MariaDB -- Versi PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
INSERT INTO pos_itemtemp VALUES("IATT200005683","193011","191001","192001","40000","1","40000","0","40000","1","1","1","IAT0603200958","NHO2018000007","PAID","","PEDAS"), ("IATT200005683","193011","191001","192001","40000","1","40000","0","40000","2","1","1","IAT0603200958","NHO2018000007","PAID","","PEDAS"), ("IATT200...
<filename>lib/assets/group3.sql<gh_stars>0 BEGIN; DELETE FROM groups; DELETE FROM group_users; INSERT INTO groups(id, name) VALUES(1, 'チームA'); INSERT INTO group_users(group_id, user_id) VALUES(1, 46); INSERT INTO group_users(group_id, user_id) VALUES(1, 1); INSERT INTO group_users(group_id, user_id) VALUES(1, 34); INS...
<reponame>devodo/appakin SELECT id, last_app_id, is_success, error_message, date_created FROM appstore_refresh_audit order by 1 desc limit 10 select * from appstore_refresh_audit where last_app_id <= 487356 and last_app_id > 486135 order by id desc limit 1 select * from appstore_app where ext_id = '4ad99f1448f...
-- This file should undo anything in `up.sql` ALTER TABLE posts DROP COLUMN IF EXISTS verify;
<reponame>Narvalex/EventCentric<filename>src/EventCentric/EventCentric.Persistence.SqlServer/SqlScripts/EventStore.sql --===================================================== -- README: This script can drop and create the schema. -- To achieve this, you need to specify the desired db -- name in 2 places bellow --===...
CREATE TABLE vedtak_simulering_mottaker ( id BIGINT PRIMARY KEY, fk_vedtak_id BIGINT REFERENCES vedtak (id), mottaker_nummer VARCHAR(50), mottaker_type VARCHAR(50) ); CREATE SEQUENCE vedtak_simulering_mottaker_seq INCREMENT BY 50 START WITH 1000000 NO CYCLE; CREATE INDEX ON vedtak_sim...
-- Add column subscribe for table customers
<reponame>bduggan/gcis<gh_stars>10-100 create table webpage ( identifier varchar not null primary key, url varchar not null unique, title varchar, access_date timestamp ); insert into publication_type (identifier,"table") values ('webpage','webpage'); select audit.audit_table('webpage'); create ...
--! Previous: sha1:7155cc11405910d21a27d847b9ca0a1ef2be16da --! Hash: sha1:eb2d8dcd3af5bf0ca72179cca5f3047f8ed85b7a --! split: 1-current.sql -- Enter migration here drop policy select_all on app_public.brands; CREATE POLICY select_all ON app_public.brands FOR SELECT USING (FALSE);
CREATE DATABASE IF NOT EXISTS `blackbooks` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `blackbooks`; -- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: localhost Database: blackbooks -- ------------------------------------------------...
<gh_stars>0 drop table if exists ab_platform.experiment_populations_parent_post_purchase_routines_onboarding_v2_temp cascade; create table ab_platform.experiment_populations_parent_post_purchase_routines_onboarding_v2_temp distkey (entity_id) sortkey (entity_id) as ( select '4cc949f9-fd5a-460f-a69c-9f640ef7e...
WITH id AS ( SELECT user_id FROM useraccounts.accounts WHERE email = ? ) , props AS ( SELECT key , value FROM useraccounts.account_properties WHERE user_id = (SELECT user_id FROM id) ) SELECT u.user_id , u.email , u.signature , u.stable_id , (SELECT value FROM pro...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 30, 2015 at 08:06 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
<gh_stars>0 select count(1) from asistencia_curso where numero_comparendo = :numeroComparendo
<gh_stars>0 CREATE TABLE AUTO_PK_SUPPORT( TABLE_NAME VARCHAR(100 CHAR) NOT NULL, NEXT_ID INTEGER NOT NULL ); INSERT INTO AUTO_PK_SUPPORT VALUES ('persistedcomplexparam', 1);
INSERT INTO `sys_dict` (`id`, `value`, `label`, `type`, `description`, `sort`, `parent_id`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`) VALUES ('3976119b83b3493ebee4ee85355468b2', '1', '法定安全取证培训', 'train_content_classify', '培训内容分类', 10, '0', '1', '2017-5-17 23:41:44', '1', '2017-5-17 ...
<filename>migrations/frontend/1528395702_changeset_user_fk.up.sql BEGIN; ALTER TABLE changeset_specs ALTER COLUMN user_id DROP NOT NULL, DROP CONSTRAINT IF EXISTS changeset_specs_user_id_fkey, ADD CONSTRAINT changeset_specs_user_id_fkey FOREIGN KEY (user_id) REFERENCES users (id) ON...
CREATE TABLE PlaylistVideo ( VideoId varchar(32) NOT NULL, PlaylistId int NOT NULL, Title nvarchar(256) NOT NULL, ChannelId varchar(32) NOT NULL, ChannelTitle nvarchar(256) NOT NULL, DateAdded int NOT NULL, DateLastPlayed int NOT NULL, SortOrder int NOT NULL, CONSTRAINT PK_PlaylistVideo PRIMARY KEY ( VideoI...
/* SQLyog v10.2 MySQL - 5.1.32-community : Database - myblog ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIG...
CREATE TABLE [dbo].[UploadLog] ( [LogId] [INT] IDENTITY(1,1) NOT NULL, [UploadStartDateTime] [DATETIME] NOT NULL, [UploadEndDateTime] [DATETIME] NULL, [FileUploadCount] [INT] NULL, [TriggerId] [VARCHAR](36) NULL, CONSTRAINT [PK_UploadLog] PRIMARY KEY CLUSTERED ([LogId] ASC) )
--TEST: [Merge Statement] merge_insert_clause does not work when using a FALSE constant filter predicate in a merge statement. autocommit off; drop table if exists t1; drop table if exists t2; create table t1(a int, b int); insert into t1 values(1, 1); create table t2(a int, b int); insert into t2 values(1, 100); ...
<reponame>opengauss-mirror/Yat -- @testpoint: opengauss关键字dictionary(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists dictionary_test; create table dictionary_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists dictionary; create synonym dictionary for dictionary_test; insert into dictionary values...
/* SQLyog Ultimate v13.1.1 (64 bit) MySQL - 10.1.38-MariaDB : Database - db_posttest ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHEC...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 28, 2020 at 01:14 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.6.16 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 9.1.0.4867 -- -------------------------------------------------------- /*...
SELECT * FROM towns; SELECT * FROM departments; SELECT * FROM employees;
<gh_stars>0 --ZAD4 DROP TABLE IF EXISTS ksiazki; CREATE TABLE ksiazki ( id_ksiazki NUMERIC(10, 0) PRIMARY KEY, tytul varchar(100) NOT NULL, autorzy varchar(100), cena NUMERIC(6, 2), data_wydania DATE )
CREATE DATABASE playersData; use playersData; CREATE TABLE IF NOT EXISTS mlb_players_1 ( `id` int AUTO_INCREMENT, `Player` VARCHAR(19) CHARACTER SET utf8, `Team` VARCHAR(6) CHARACTER SET utf8, `Position` VARCHAR(20) CHARACTER SET utf8, `Height_inches` INT, `Weight_lbs` VARCHAR(4) CHARA...
<filename>SQLSrv/FA_IND.sql CREATE INDEX ARTEMSIEARTPADRE ON ARTICULO_ENSAMBLE ( ARTICULO_PADRE ) go CREATE INDEX ARTEMSIEARTHIJO ON ARTICULO_ENSAMBLE ( ARTICULO_HIJO ) go CREATE INDEX ARTPREIEARTICULO ON ARTICULO_PRECIO ( ARTICULO ) go CREATE INDEX FKARTPRENPMV ON ARTICULO_PREC...
<gh_stars>0 CREATE DATABASE IF NOT EXISTS `jackrabbit` DEFAULT CHARACTER SET latin1; grant all on jackrabbit.* to 'jcr_user'@'%' identified by '@@DB_PWD@@'; commit;
USE "SoftUni"; SELECT DepartmentId, ManagerId, MAX(Salary) AS MaxSalary, MIN(Salary) AS MinSalary, MAX(Salary) - MIN(Salary) AS Diff, COUNT(EmployeeID) AS EmployeesCount FROM "Employees" GROUP BY ManagerID, DepartmentID;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 28, 2016 at 08:30 AM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
INSERT INTO region (name, pcode, code) VALUES ('翠湖西路社区','0', '530102001001'); INSERT INTO region (name, pcode, code) VALUES ('水晶宫社区','0', '530102001002'); INSERT INTO region (name, pcode, code) VALUES ('五华山社区','0', '530102001003'); INSERT INTO region (name, pcode, code) VALUES ('文化巷社区','0', '530102001004'); INSERT INTO...
-- -- Copyright (c) Microsoft Corporation. All rights reserved. -- Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. -- CREATE PROCEDURE UpdatePendingPartnerRedeemedDeals @creditStatusId INT, @transactionReferenceNumbers TransactionReferenceNumbers READONLY AS set...
<gh_stars>10-100 WITH RECURSIVE upward_search(level,path,id,parts,rel_off,cycle) AS ( SELECT 0,ARRAY[por.id],por.id,por.parts,por.rel_off,false FROM planet_osm_rels por JOIN used_rel_ids uri ON por.id = uri.id UNION SELECT level + 1, path || r.id, r.id, r.parts, r.rel_off...
/* SQLyog Ultimate v12.4.1 (64 bit) MySQL - 8.0.13 : Database - balloons ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN...
<reponame>lerisse/Bravo<filename>server/db/dummyData/shows.sql<gh_stars>1-10 insert into shows (id, user_id, rating, title, street, city, zip, state, date, website, description, photo) values (1, 1, 5, '<NAME> and the Cursed Child', '214 West 43rd Street', 'New York City', 10036, 'New York', '1620464374000', 'https://w...
<gh_stars>10-100 CREATE TABLE subdivision_US (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_US" ("id", "name", "level") VALUES (E'US-AL', E'Алабама', E'state'); INSERT INTO "subdivision_US" ("id", "name", "level") VALUES (E'US-AK', E'Аљаска', E'state'...
-- Copyright 2020 <NAME>. All rights reserved. -- Copyright Materialize, Inc. and contributors. All rights reserved. -- -- 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 in the LICENSE file at th...
/* Warnings: - You are about to drop the column `nickname` on the `User` table. All the data in the column will be lost. - A unique constraint covering the columns `[authikId]` on the table `User` will be added. If there are existing duplicate values, this will fail. */ -- AlterTable ALTER TABLE `User` DROP COL...
<gh_stars>1000+ -- 2020-11-23T09:33:42.772Z -- URL zum Konzept INSERT INTO AD_UI_ElementField (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_UI_ElementField_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,SeqNo,Type,Updated,UpdatedBy) VALUES (0,6516,0,540815,544472,TO_TIMESTAMP('2020-11-23 11:33:41','YYYY-MM-DD HH24:MI:SS'),100...
<gh_stars>0 select printf('%.2f', double_6) as double_6 from nulls where double_6 = 99.0 99.00
<reponame>petroud/DatabaseMS CREATE FUNCTION find_hotel_amenities_3_2(hname varchar, hasstars varchar) RETURNS TABLE("Hotel Name" varchar,"Hotel ID" integer, "Stars" varchar, "City" varchar, "Country" varchar) AS $$ BEGIN RETURN QUERY SELECT "name","hotel"."idHotel","stars","city","country" FROM "hotel" INNE...
DELIMITER // DROP PROCEDURE IF EXISTS sp_partner_list // /* お客様一覧 */ CREATE PROCEDURE sp_partner_list ( ) BEGIN select s.id , s.name , s.president , concat(s.address1, s.address2) as address , s.tel , count(distinct c.id) as member_count , if(count(distinct c.id) = 0, true, false) as is...
<gh_stars>1-10 INSERT INTO TOURNAMENT (ID, END_DATE, NAME, START_DATE, TABLE_COUNT, RUNNING) VALUES (3, '2017-01-29', 'Jitty Swisssystem Cup', '2017-01-30', 6, 1); INSERT INTO TOURNAMENT_CLASS (ID, T_ID, NAME, SYSTEM_TYPE, START_TTR, END_TTR, START_TIME, OPEN_FOR_MEN, OPEN_FOR_WOMEN, RUNNING, ACTIVE_PHASE, AGE_GROUP) ...
SET DEFINE OFF; Insert into YUG_OWNER.REF_AGREEMENT_TYPE (ID_PK, VERSION, CREATED_TS, UPDATED_TS, UPDATED_BY_USER, UPDATED_BY_TXN_ID, CONFIG_LANGUAGE_CODE_KEY, KEY, VALUE, DESCRIPTION) Values ('1', 0, TO_TIMESTAMP('7/4/2017 1:37:27.313000 PM','fmMMfm/fmDDfm/YYYY fmHH12fm:MI:SS.FF AM'), TO_TIMESTAMP('7/4/2017 1:3...
drop table if exists api_log cascade; drop table if exists external_service cascade; -- API call history create table api_log( api_log_id bigint, service_code varchar(100) not null, service_name varchar(100) not null, client_ip varchar(45) not null, client_server_name varchar(30), api_key ...
-- query changes from using subject name to discpline id create index pc_tracking_id_idx on placement_component (tracking_id);
-- :city_list_base with online_data as ( select last(l.short_city) as short_city, l.long_city, last(l.short_state) as short_state, l.long_state, last(l.short_country) as short_country, l.long_country, last(l.city_id) as city_id, count(*) as hotspot_count, s.online as ...
<gh_stars>100-1000 SET FOREIGN_KEY_CHECKS=0; INSERT INTO `ls_activity_area` (`id`,`name`,`title`,`image`,`status`,`create_time`,`update_time`,`del`) VALUES (1,'热销榜单','开学季必备','/uploads/images/background/20201210/a3bf099101793a2e0bfe087b92e51403.png',1,1607587777,1607588071,0); INSERT INTO `ls_activity_area` (`id`,`name`...
<gh_stars>0 -- ETF sub-query contains aggregation SELECT * FROM transform( TABLE(select count(*)::int,'haha'::text from t1) ) ORDER BY b; SELECT * FROM transform( TABLE(select avg(a)::int,'haha'::text from t1 where a < 51 group by c ...
SELECT * FROM view_beban_barang4_bppakb UNION ALL
<gh_stars>1-10 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'; ALTER TABLE `behaviour_composer_schema2`.`micro_behaviour` DROP INDEX `url` , ADD INDEX `url` (`url`(255) ASC) ; ALTER...
ALTER TABLE APPLICATION ADD CONSTRAINT UNQ_APPLICATION_0 UNIQUE (FACILITY_ID, NAME, VERSION) ALTER TABLE DATACOLLECTIONDATAFILE ADD CONSTRAINT UNQ_DATACOLLECTIONDATAFILE_0 UNIQUE (DATACOLLECTION_ID, DATAFILE_ID) ALTER TABLE DATACOLLECTIONDATASET ADD CONSTRAINT UNQ_DATACOLLECTIONDATASET_0 UNIQUE (DATACOLLECTION_ID, DATA...
<reponame>ucdavis/FSNEP  CREATE Procedure usp_NotifyUsersOfSemiAnnualCertification AS DECLARE @dayInt int DECLARE @monthInt int SET @dayInt = (SELECT DATEPART(DAY, GETDATE())) SET @monthInt = (SELECT DATEPART(month, GETDATE())) IF (@dayInt = 13) AND (@monthInt = 4 OR @monthInt = 1) BEGIN DECLARE @MailList CURSOR...
<gh_stars>0 drop database if exists inside_out_metal; create database inside_out_metal; create table inside_out_metal.band ( id integer primary key auto_increment, name varchar(40) not null, history varchar(2000) not null ) engine = InnoDB; create table inside_out_metal.language ( region_code varchar(...
<gh_stars>0 INSERT INTO `cloudplateform_wrongquiz`(`user_id`, `quiz_id`, `wrong_answer`) VALUES (1,1,1),(1,2,3);
ALTER TABLE [dbo].[Event] ADD [Closed] DATETIME NULL; GO CREATE NONCLUSTERED INDEX [IX_Event_Closed] ON [dbo].[Event] ( [Closed] ASC ) GO ALTER VIEW [dbo].[ViewEventList] AS SELECT e.Id, e.DateOfEvent, e.Capacity, e.ContactCompanyName, e.ContactCompanyPhone, e.ContactCompanyEmail, e.ContactNonProfitOr...
<reponame>marciomaia2020/HellBrass INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES (36, 0, 'com_actionlo...
CREATE TABLE [SalesLT].[Customer] ( [CustomerID] INT IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL, [NameStyle] [dbo].[NameStyle] CONSTRAINT [DF_Customer_NameStyle] DEFAULT ((0)) NOT NULL, [Title] NVARCHAR (8) NULL, [FirstName] [dbo].[Name] NOT NULL, [MiddleNam...
ALTER TABLE ONLY foo_schema.foo_table ADD CONSTRAINT foo_table_desc UNIQUE (description);