sql
stringlengths
6
1.05M
<gh_stars>1-10 -- Dynamic Memory.sql select distinct to_char(a.end_interval_time,'MM-DD-YY') change_date, c.name, (c.value)/1024/1024 MB from dba_hist_snapshot a, (select * from (select snap_id,instance_number,name,value, lag(value,1) over (partition by instance_number,na...
SELECT * FROM Session; INSERT INTO Session VALUES ('2019 Spring', '01/27/2019', '05/14/2019'), ('2019 Summer', '05/17/2019', '08/15/2019'), ('2019 Fall', '08/21/2019', '12/18/2019'), ('2020 Spring', '01/26/2020', '05/12/2020'), ('2020 Summer', '05/19/2020', '08/20/2020'), ('2020 Fall', '08/27/2020', '12/09...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 29, 2020 at 03:43 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
/* Verifica se existe alguma atividade disponível para o usuário na fila prioritária de grupo */ SELECT id FROM ( SELECT a.id, a.etapa_id, a.unidade_trabalho_id, a_ant.tipo_situacao_id AS situacao_ant, fpg.prioridade AS fpg_prioridade FROM macrocontrole.atividade AS a INNER JOIN macrocontrole.etapa AS e ON e....
<filename>db/migrations/20211105_0000_support_request.sql START TRANSACTION; -- -- Table structure for table `support_request` -- CREATE TABLE `support_request` ( `support_id` INT PRIMARY KEY AUTO_INCREMENT, `support_type` VARCHAR(75), `support_key` VARCHAR(75), `user_id` INT, `user_name` VARCHAR(40), `em...
<reponame>DzonnyDZ/Caps<gh_stars>0 ALTER TABLE [dbo].[Storage] ADD CONSTRAINT [FK_Storage_ParentStorage] FOREIGN KEY ([ParentStorageID]) REFERENCES [dbo].[Storage] ([StorageID]) ON DELETE NO ACTION ON UPDATE NO ACTION;
-- 2019-03-15T10:26:07.215 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Tab (Created,HasTree,AD_Window_ID,SeqNo,IsSingleRow,AD_Client_ID,Updated,IsActive,CreatedBy,UpdatedBy,IsInfoTab,IsTranslationTab,IsReadOnly,Processing,IsSortTab,ImportFields,TabLevel,IsInsertRecord,IsAdvancedTab,...
select count(*) from nulls3 where float_11 <= 0.0102 1
SET FOREIGN_KEY_CHECKS=0; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; CREATE TABLE IF NOT EXISTS `{prefix}sch_kesis_score_group` ( `id_sch_kesis_score_group` int(11) NOT NULL, `group_name` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; INSERT INTO `{prefix}sch...
<gh_stars>0 {%- macro date_timestamp(out_of_sequence) -%} {{- adapter.dispatch('date_timestamp', 'dbtvault')(out_of_sequence=out_of_sequence) -}} {%- endmacro %} {%- macro default__date_timestamp(out_of_sequence) %} {%- if 'insert_date' in out_of_sequence.keys() %} {%- set insert_date = out_of_sequence['inse...
<filename>FXServer_ESX/resources/[ESX]/[jobs]/Esx_Cityworks/esx_cityworks/esx_cityworks.sql INSERT INTO `jobs` (`name`, `label`) VALUES ('works', 'City Works'); INSERT INTO `job_grades` (`job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES ('works', 0, 'interim', 'Employee', 150, '{}', '{...
<filename>src/main/resources/db/changelog/20180315_1413.mysql.sql --liquibase formatted sql --changeset pmuchowski:1521119600514-1 UPDATE jasper_templates SET data = X'aced0005737200286e65742e73662e6a61737065727265706f7274732e656e67696e652e4a61737065725265706f727400000000000027d80200034c000b636f6d70696c654461746174001...
<gh_stars>10-100 SELECT tab0.v0 AS v0 , tab1.v2 AS v2 FROM (SELECT sub AS v0 FROM og__tag$$1$$ WHERE obj = 'wsdbm:Topic19' ) tab0 JOIN (SELECT sub AS v0 , obj AS v2 FROM sorg__caption$$2$$ ) tab1 ON(tab0.v0=tab1.v0) ++++++Tables Statistic sorg__caption$$2$$ 1 SS sorg__caption/og__tag VP <sorg_...
CREATE TABLE IF NOT EXISTS SANDBOX_POC1.EMPLOYEES.PHDATA_Persons ( PersonID int NOT NULL COMMENT '', LastName VARCHAR(255) COMMENT '', FirstName VARCHAR(255) COMMENT '', Address VARCHAR(255) COMMENT '', City VARCHAR(255) COMMENT '', Age VARCHAR(40) NOT NULL COMMENT '' );
<filename>src/SQLCover/test/DatabaseWithTests/tSQLt/Functions/Private_GetForeignKeyRefColumns.sql  CREATE FUNCTION tSQLt.Private_GetForeignKeyRefColumns( @ConstraintObjectId INT ) RETURNS TABLE AS RETURN SELECT STUFF(( SELECT ','+QUOTENAME(rci.name) FROM sys.foreign_key_columns c ...
DROP VIEW IF EXISTS notice_of_work_view; CREATE OR REPLACE VIEW notice_of_work_view AS SELECT nid.now_application_guid, m.mine_guid, m.mine_no, nid.now_number, app.lead_inspector_party_guid, concat_ws (' ', p.first_name, p.party_name) AS lead_inspector_name, COALESCE(nowt.description, sub.noticeofworktype, msub.notice...
SET SESSION FOREIGN_KEY_CHECKS=0; /* Drop Tables */ DROP TABLE IF EXISTS oa_leave; DROP TABLE IF EXISTS oa_notify_record; DROP TABLE IF EXISTS oa_notify; DROP TABLE IF EXISTS OA_TEST_AUDIT; /* Create Tables */ CREATE TABLE oa_leave ( id varchar(64) NOT NULL COMMENT '编号', process_instance_id varchar(64) COMMENT...
<reponame>okadatta/nmon-redash<filename>postgres-nmon/scripts/02_create_table_mem.sql create table server1_mem( time timestamp, memtotal real, hightotal real, lowtotal real, swaptotal real, memfree real, highfree real, lowfree real, swapfree real, memshared real, cached real, active real, bigfree real, buffers real, sw...
<reponame>mojistar69/LarKhabar<filename>db/onlinefarstelinfodb_currentcalls.sql -- MySQL dump 10.13 Distrib 5.6.24, for Win32 (x86) -- -- Host: 127.0.0.1 Database: onlinefarstelinfodb -- ------------------------------------------------------ -- Server version 5.5.5-10.1.38-MariaDB /*!40101 SET @OLD_CHARACTER_SET_C...
<filename>migrations/000003_add-transxchange-tables.down.sql DROP TABLE IF EXISTS days_of_non_operation; DROP TABLE IF EXISTS days_of_operation; DROP TABLE IF EXISTS vehicle_journeys; DROP TABLE IF EXISTS journey_patterns; DROP TABLE IF EXISTS lines; DROP TABLE IF EXISTS transxchange_services; DROP TABLE IF EXISTS oper...
<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.26, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: sisverapaz -- ------------------------------------------------------ -- Server version 5.7.26-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_...
create type order_type as enum (); create table orders ( order_id uuid not null, order_type order_type not null, party_id uuid not null, party_type party_type not null, date timestamptz(6) not null ); --- drop table orders; drop type order_type;
/* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.6.20 : Database - roughsheet ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_...
<reponame>twyunting/CSC-634_Database-Management-Systems<gh_stars>0 CREATE DATABASE summerDB; USE summerDB; CREATE TABLE myMessages (message varchar(50)); INSERT INTO myMessages VALUES ("This is the summer 2021 class"); SELECT * FROM myMessages;
<reponame>relentlessreed/week12 INSERT INTO department (name) VALUES ('HR'); INSERT INTO department (name) VALUES ('Management'); INSERT INTO department (name) VALUES ('Security'); INSERT INTO department (name) VALUES ('Development Team'); INSERT INTO department (name) VALUES ('Sales'); INSERT INTO role (title, sa...
USE employee_db; -- Data for department table INSERT INTO department (name) VALUES ("Human Resources"); INSERT INTO department (name) VALUES ("Marketing"); INSERT INTO department (name) VALUES ("Information Technology"); INSERT INTO department (name) VALUES ("Corporate"); -- Data for role table INSERT INTO role (titl...
<filename>database/poblar.sql ALTER TABLE users ADD CHECK (rol in ('admin','gad','normal')); INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `rol`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'david', '<EMAIL>', NULL, 'David1995', 'admin', NULL, '2022-01-14 08:53:51', '2022-0...
DROP SCHEMA IF EXISTS protected CASCADE; ALTER DEFAULT PRIVILEGES REVOKE ALL ON SEQUENCES FROM public; ALTER DEFAULT PRIVILEGES REVOKE ALL ON FUNCTIONS FROM public; REVOKE ALL ON SCHEMA public FROM public; GRANT ALL ON SCHEMA public TO :DATABASE_OWNER_ROLE; CREATE SCHEMA protected; GRANT USAGE ON SCHEMA public, prot...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 27, 2021 at 09:47 AM -- Server version: 5.7.33 -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
<filename>mbolanca/ispit/osnove_MySQL/MySQL_baza_videoteka.sql -- -------------------------------------------------------- -- Poslužitelj: 127.0.0.1 -- Server version: 10.1.28-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Verzija: ...
WHENEVER SQLERROR CONTINUE DEFINE app=&1 @..\initspool install_utils /*************************************************************************************************** Name: install_utils.sql Author: <NAME> Date: 26-May-2019 Installation script for the oracle_plsql_utils module, ...
-- file:password.sql ln:66 expect:true SELECT rolpassword FROM pg_authid WHERE rolname='regress_passwd_empty'
-- 2017-06-13T10:30:22.742 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsOneInstanceO...
<filename>Computer_science/E01_MySQL/S1_Basic/S2_05_Triggers.sql<gh_stars>0 /* Triggers */ USE classicmodels; --T-- DROP TRIGGER trigger1 --T-- CREATE TRIGGER trigger1 (BEFORE|AFTER) (INSERT ON|UPDATE ON|DELETE ON) table1 FOR EACH ROW BEGIN data_modify END DROP TRIGGER before_t3_update; CREATE TRIGGER before_t3_u...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 07, 2016 at 01:01 PM -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_...
-- Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; version 2 of the License. -- -- This program is distributed ...
<filename>scripts/create-extraction-manifest.sql<gh_stars>0 -- Add New Scripts -- PostgreSQL script to create a manifest file for extracting files -- from LakeFS to S3. Use this manifest to run treeverse-distcp, -- which will extract the files. -- -- -- -- -- -- -- -- -- -- Set these variables by running "psql --var...
CREATE TABLE usuario ( id BIGINT(20) PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(50) NOT NULL, email VARCHAR(150) NOT NULL, senha VARCHAR(255) NOT NULL, status BOOLEAN DEFAULT true, data_nascimento DATE, UNIQUE INDEX email_UNIQUE (email ASC) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE g...
<filename>modules/flowable-engine/src/main/resources/org/flowable/db/upgrade/flowable.db2.upgradestep.514.to.515.engine.sql alter table ACT_RU_TASK add CATEGORY_ varchar(191); Call Sysproc.admin_cmd ('REORG TABLE ACT_RU_TASK'); drop index ACT_UNIQ_RU_BUS_KEY; -- DB2 *cannot* drop columns. Yes, th...
ALTER TABLE PersonComments ADD CONSTRAINT FK_PersonComments_PersonID FOREIGN KEY (PersonID) REFERENCES Person (PersonID)
CREATE SCHEMA samplestudenttranscript AUTHORIZATION postgres;
----------------------------------------- -- Tables Used in this Section ----------------------------------------- @@&&fc_json_loader. 'OCI360_INSTANCES' @@&&fc_json_loader. 'OCI360_COMPARTMENTS' @@&&fc_json_loader. 'OCI360_IMAGES' @@&&fc_json_loader. 'OCI360_VNIC_ATTACHS' @@&&fc_json_loader. 'OCI360_VNICS' @@&&fc_json...
<reponame>awto-rs/awto-es SELECT "id", "created_at", "aggregate_type", "aggregate_id", "sequence", "event_data" FROM "event" WHERE "id" = ANY($1::INT[]) ORDER BY "sequence" ASC;
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 20, 2018 at 04:08 AM -- Server version: 8.0.11 -- PHP Version: 7.1.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 16-05-2017 a las 17:07:13 -- Versión del servidor: 5.6.33 -- Versión de PHP: 5.6.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
<filename>mosquemarket.sql -- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 29, 2019 at 12:39 PM -- Server version: 10.1.33-MariaDB -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+...
CREATE TABLE issues ( entity_id TEXT PRIMARY KEY, create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, id TEXT UNIQUE NOT NULL, title TEXT UNIQUE NOT NULL, body TEXT NOT NULL );
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Oct 27, 2021 at 11:55 PM -- Server version: 10.5.12-MariaDB-cll-lve -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
<reponame>ugate/sqler-postgres CREATE TABLE IF NOT EXISTS sqlerpg.TEST (ID INTEGER NOT NULL PRIMARY KEY, NAME VARCHAR(255), CREATED_AT TIMESTAMP(3) WITH TIME ZONE, UPDATED_AT TIMESTAMP(3) WITH TIME ZONE)
insert into t_test (name, age, sex) VALUES ('Lucy', '18', '女 '); insert into t_test (name, age, sex) VALUES ('Tom', '19', '男 '); insert into t_test (name, age, sex) VALUES ('Lucy', '18', '女 '); insert into t_test (name, age, sex) VALUES ('Tom', '19', '男 ');
USE Test CREATE TABLE Persons ( PersonID int IDENTITY, FirstName varchar(20) NOT NULL, Salary numeric(10,2), PassportID int NOT NULL ) CREATE TABLE Passports ( PassportID int IDENTITY (101,1), PassportNumber char(8) NOT NULL ) INSERT INTO Persons(FirstName,Salary,PassportID) VALUES ('Roberto',43300.00,102),('T...
<filename>db/db/3table/upright/FM_COUNTRY.sql drop table if exists FM_COUNTRY; /*==============================================================*/ /* Table: FM_COUNTRY */ /*==============================================================*/ create table FM_COUNTRY ( COUNTRY var...
<reponame>HermannKroll/ContextInformationFusion --mv_cause CREATE MATERIALIZED VIEW mv_cause AS ( WITH S1 AS ( SELECT P1.pmid, P1.subject_cui, P1.object_cui FROM public.predication P1 WHERE P1.predicate = 'CAUSES' AND P1.pmid NOT LIKE'%[%' ), S2 AS ( SELECT S1.subject_cui, S1.object_cui, count(*) AS amount FROM S1...
WITH insert_collection as ( INSERT into collections ( type, original_language, post_date, published, updated_date ) VALUES ( 'collection', ${original_language}, 'now', true, 'now' ) RETURNING id as thingid ) INSERT INTO localized_texts(body, title, description, language, thingid, timestamp) VAL...
-- Add primary key ALTER TABLE firepower ADD COLUMN id SERIAL PRIMARY KEY; -- Delete and update data DELETE FROM firepower WHERE ReservePersonnel = 0; -- Find countries with one FighterAircraft SELECT * FROM firepower WHERE FighterAirCraft = 1; -- Make note of them -- <NAME> -- Give each country with no FighterAirc...
<gh_stars>1000+ DROP INDEX t_query_selection_todelete_executor_uuid; CREATE INDEX t_query_selection_todelete_executor_uuid ON t_query_selection_todelete(executor_uuid);
<filename>doc/sql/20170417.sql ALTER TABLE `bgirl`.`group` ADD COLUMN `thumb4` VARCHAR(245) NULL AFTER `group_no`;
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : hospital Source Server Version : 50714 Source Host : localhost:3306 Source Database : healthcheckup Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2018-06-08 20:27:28 */ SET FOREIGN_KE...
------------------------------------------------------------------------------- -- doc info ------------------------------------------------------------------------------- CREATE TABLE DOC_INFO( ID BIGINT auto_increment, NAME VARCHAR(200), PATH VARCHAR(200), TYPE INTEGER, CREATE_TIME TIMESTAMP, USER_ID ...
<gh_stars>10-100 -- -- Performance data. -- CREATE TABLE data_bin ( id_metric int NOT NULL, ctime int NOT NULL, status enum('0', '1', '2', '3', '4') NOT NULL default '3', value float default NULL, FOREIGN KEY (id_metric) REFERENCES metrics (metric_id) ON DELETE CASCADE, INDEX (id_metric) ) ENGINE=Inno...
<filename>tests/queries/0_stateless/01113_local_dictionary_type_conversion.sql DROP DATABASE IF EXISTS database_for_dict; CREATE DATABASE database_for_dict; CREATE TABLE database_for_dict.table_for_dict ( CompanyID String, OSType Enum('UNKNOWN' = 0, 'WINDOWS' = 1, 'LINUX' = 2, 'ANDROID' = 3, 'MAC' = 4), SomeID ...
-- 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 EXISTS ( SELECT 1 FROM INFORMAT...
<filename>tests/queries/1_stateful/00153_aggregate_arena_race.sql -- Tags: race create temporary table dest00153 (`s` AggregateFunction(groupUniqArray, String)) engine Memory; insert into dest00153 select groupUniqArrayState(RefererDomain) from test.hits group by URLDomain;
<gh_stars>1000+ -- Copyright (c) YugaByte, Inc. alter table maintenance_window add column if not exists description text;
create table products ( product_id uuid primary key default gen_random_uuid(), name text not null check (name <> ''), publisher_id uuid not null references publishers )
<reponame>Zhaojia2019/cubrid-testcases --pass unmatched types or formats of values create class coo( col1 char(20), col2 varchar(20), col3 nchar(20), col4 nchar varying(20), col5 string, col6 bit(20), col7 bit varying(20), col8 int, col9 smallint, col10 bigint, col11 numeric, col12 float, col13 do...
<reponame>opengauss-mirror/Yat -- @testpoint: 数字操作符|(二进制OR), 边界值进行二进制or drop table if exists data_01; create table data_01 (clo1 BIGINT,clo2 BIGINT); insert into data_01 values (9223372036854775807, 9223372036854775807); select clo1 | clo2 from data_01; SELECT 9223372036854775807 | -9223372036854775807 AS RESULT; SELE...
<reponame>hahaluckyme/e621ng<gh_stars>1-10 -- pools alter table pools rename column user_id to creator_id; alter table pools drop column post_count; alter table pools drop column is_locked; alter table pools add column category character varying(30) not null default 'series', add column is_deleted boolean not nu...
SELECT asset, recipient_id, sender_public_key FROM transactions WHERE TYPE = 9 ORDER BY (timestamp + sequence) DESC
/* Navicat MySQL Data Transfer Source Server : local Source Server Version : 80015 Source Host : localhost:3306 Source Database : test2 Target Server Type : MYSQL Target Server Version : 80015 File Encoding : 65001 Date: 2020-01-05 10:01:45 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
<reponame>WKHAllen/GreenPoll<filename>src/sql/password_reset/get_password_resets.sql SELECT * FROM password_reset;
CREATE DATABASE banco; USE banco; #------------------------------------------------------------------------- # Creación Tablas #------------------------------------------------------------------------- CREATE TABLE Ciudad ( nombre VARCHAR(45) NOT NULL, cod_postal SMALLINT UNSIGNED NOT NULL, CONSTRAINT pk_...
/* leave this l:see LICENSE file g:utility v:140109\s.zaglio: check t:sp__script_utility_setup_test run */ CREATE proc sp__script_utility_setup_test @opt sysname = null, @dbg int=0 as begin try -- set nocount on added to prevent extra result sets from -- interferring with select statements. --...
SELECT LAST_INSERT_ID() AS ID FROM DIR_GAME;
<filename>users.sql<gh_stars>0 CREATE TABLE users ( username_hash character(64) PRIMARY KEY, password_hash character(64), session_id character(36) ); CREATE TABLE users_info ( username_hash character(64) REFERENCES users(username_hash), user_name character(30), user_surname character(30), u...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.31.10 -- Waktu pembuatan: 25 Bulan Mei 2021 pada 07.06 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
<gh_stars>0 -- MySQL dump 10.13 Distrib 5.5.62, for Win64 (AMD64) -- -- Host: localhost Database: test -- ------------------------------------------------------ -- Server version 5.5.5-10.5.3-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT...
-- SELECT STATEMENTS SELECT id, website, username, password, year, enabled FROM Account; SELECT id, Accountid, Messageid, Staffid FROM AccountMessages; SELECT id, code, description, year FROM Class; SELECT id, Staffid, Classid FROM ClassStaff; SELECT id, Studentid, Classid FROM ClassStudent; SELECT id, subject, message...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 31, 2018 at 02:24 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<gh_stars>1-10 CREATE TABLE ADDRESS ( ADDRESSID VARCHAR(256) NOT NULL, STREET VARCHAR(256) , STATE VARCHAR(256) , ZIP VARCHAR(256) , CITY VARCHAR(256) , CONSTRAINT PK_ADDRESS PRIMARY KEY (ADDRESSID) ) ; CREATE TABLE CUSTOMER ( FIRSTNAME VARCHAR(256) , CUSTOMERID VARCHAR(256) NOT NULL, LASTNAME VARCHAR(256) , CONSTRAINT...
SELECT latlon(geom), latlon_parens(geom), latlon_tab(geom), latlon_google(geom), latlon_osm(geom), latlon_bing(geom), latlon_is_valid(geom) FROM (SELECT st_geomFromText('POINT(2.294609 48.85835)', 4326) as geom) sq;
<filename>public/ddmmyanmar_fashionshop.sql -- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: May 01, 2020 at 09:38 AM -- Server version: 10.2.31-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTI...
<reponame>RafaelCruzSabiino/Procedo CREATE DATABASE IF NOT EXISTS `procedo` /*!40100 DEFAULT CHARACTER SET utf8 */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `procedo`; -- MySQL dump 10.13 Distrib 8.0.27, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: procedo -- ---------------------------------------------------...
-- Unfortunately, the output of `sqlite3 .dump` is ugly, so this file should be generated by hand. -- Not to mention, SQLite3 barely supports ALTER TABLE. CREATE TABLE "users" ( "userID" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" TEXT NOT NULL, "passhash" TEXT NOT NULL, "token" TEXT, "c...
CREATE TABLE [dbo].[OrgGcPreferences] ( EducationOrganizationId INT NOT NULL, [GcUserEmail] VARCHAR(200) NOT NULL, [AllowExternalDomains] BIT NOT NULL, CONSTRAINT PK_OrgPreferences PRIMARY KEY (EducationOrganizationId) )
<reponame>forgottenlands/ForgottenCore406 CREATE TABLE `research_sites` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `entry` INT(10) NOT NULL DEFAULT '0', `map` INT(10) NOT NULL DEFAULT '0', `minSkill` INT(10) NOT NULL DEFAULT '0', `minLevel` INT(10) NOT NULL DEFAULT '0', `comment` LONGTEXT NOT NULL, PRIMARY...
<gh_stars>0 PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE general_params ( "name" text, "value" text ); INSERT INTO "general_params" VALUES('list_report_sproc','GetDatasetStatsByCampaign'); CREATE TABLE list_report_hotlinks ( id INTEGER PRIMARY KEY, "name" text, "LinkType" text, "WhichArg" text, "Targe...
--- -- ============LICENSE_START======================================================= -- openECOMP : SDN-C -- ================================================================================ -- Copyright (C) 2017 AT&T Intellectual Property. All rights -- reserved. -- ===============================================...
select sum(1) as "col" from ( select test_cal_dt.week_beg_dt, test_kylin_fact.lstg_format_name, test_category_groupings.meta_categ_name, sum(test_kylin_fact.price) as gmv, count(*) as trans_cnt from test_kylin_fact inner JOIN test_cal_dt ON test_kylin_fact.cal_dt = test_cal_dt.cal_dt inner JOIN test_category_...
<filename>database/tests/functions/projects/get_project.sql -- Start transaction and plan tests begin; select plan(2); -- Non existing project select is( get_project('non-existing', 'non-existing')::jsonb, (null::jsonb), 'Null is returned if the requested project does not exist' ); -- Seed some data inser...
<filename>packaging/dbscripts/upgrade/03_03_0660_alter_os_type_unassigned_to_other.sql -- os 0 is Unassigned and 6 is OTHER. -- code-wise the defacto default still remains 0 and it will point to Other instead to Unassigned UPDATE vm_static set os = 0 where os = 6;
Select f.IdFactura, f.NumeroFactura, fd.IdFactura from Bd_Gtisys..Factura f left join Bd_Gtisys..FacturaDetalle fd on fd.IdFactura = f.IdFactura select * from Bd_Gtisys..Factura where IdFactura = 2312 select * from Bd_Gtisys..FacturaDetalle where IdFactura = 2312 ---Cross Join --X Y --1 A --2 B --3 C --1 A -...
<filename>src/main/resources/db/migration/V84__add_country_and_trade_bloc.sql<gh_stars>1-10 --contractor-- ALTER TABLE nw.contractor ADD COLUMN international_legal_entity_country_code character varying; --trade_bloc-- CREATE TABLE nw.trade_bloc ( id BIGSERIAL NOT NULL, version_id ...
CREATE TABLE cql3_test.stargate_test ( event_id timeuuid, post_pagename text, user_agent text, visit_referrer text, post_visid_high text, post_visid_low text, visit_num text, hit_time_gmt text, post_purchaseid text, post_product_list text, first_hit_referrer text, stargate text, PRIMARY KEY (e...
-- Held_Zauber um Hauszauber ergänzen ALTER TABLE Held_Zauber add Hauszauber bit DEFAULT 0 GO --Panzerstecher hat TP/KK 13/3 und nicht 12/3 UPDATE Waffe SET TPKKSchwelle = 13 WHERE WaffeGUID = '00000000-0000-0000-0001-000000000094' GO UPDATE Ausrüstung SET Literatur = 'AA 28 / AA Errata 2' WHERE AusrüstungGUID...
<filename>Utah/WaterBudegt_to_WaDE2.0/3_County_WaterUseDiversion_SW_GW.sql<gh_stars>0 USE [waterdata] GO /****** Object: View [dbo].[3_County_WaterUseDiversion_SW_GW] Script Date: 1/25/2019 4:38:03 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[3_County_WaterUseDiversion_SW_GW]...
SELECT * INTO [EmployeesAS] FROM Employees WHERE [Salary] > 30000 DELETE FROM EmployeesAS WHERE [ManagerID] = 42 UPDATE EmployeesAS SET [Salary] += 5000 WHERE [DepartmentID] = 1 SELECT [DepartmentID], AVG([Salary]) as [AverageSalary] FROM EmployeesAS GROUP BY [DepartmentID]
<filename>Select/3-Combined/03-Geography.sql --Geography-- --9 SELECT PeakName, Elevation FROM Peaks WHERE (PeakName LIKE 'M%' OR PeakName LIKE 'K%') AND Elevation <= 4500; --10 SELECT TOP (30) CountryName, Population FROM Countries WHERE ContinentCode LIKE 'EU' ORDER BY Population DESC, CountryName ASC; --11 SELECT ...
<gh_stars>0 -- 1. which artists did not make any albums at all? SELECT * FROM Album; SELECT * FROM Artist; SELECT ar.Name FROM Artist AS ar LEFT JOIN Album AS al ON ar.ArtistId = al.ArtistId WHERE al.AlbumId IS NULL; SELECT * FROM Artist AS ar WHERE ar.ArtistId NOT IN( SELECT ArtistId FROM Album) ...
<reponame>cncgl/springboot-doma-todo UPDATE reservation SET name = /* reservation.name */'hoge' WHERE id = /* reservation.id */0