sql
stringlengths
6
1.05M
INSERT INTO ods."Attribute" ( "AttributeName" ) SELECT "AttributeName" FROM ( SELECT 'S3DataFileBucketName' as "AttributeName" UNION SELECT 'Prefix.DataFile' as "AttributeName" UNION SELECT 'S3DataFile' as "AttributeName" -- Output/Input ...
if not exists(select * from sys.database_principals where name = 'asa.sql.workload01') create user [asa.sql.workload01] from login [asa.sql.workload01] if not exists(select * from sys.database_principals where name = 'asa.sql.workload02') create user [asa.sql.workload02] from login [asa.sql.workload02] if not exists(se...
<reponame>imrenagi/microservice-skeleton CREATE TABLE IF NOT EXISTS accounts ( id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(50) NOT NULL, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50), email VARCHAR(255) NOT NULL, address VARCHAR(255), phone_number VARCHAR(20), created_at TIM...
CREATE TABLE [Application].[StateProvinces_Archive] ( [StateProvinceID] INT NOT NULL, [StateProvinceCode] NVARCHAR (5) NOT NULL, [StateProvinceName] NVARCHAR (50) NOT NULL, [CountryID] INT NOT NULL, [SalesTerritory] ...
-- -- Copyright (c) 2012 - 2020 Arvato Systems GmbH -- -- 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 -- -- Unless required by applicabl...
<filename>sql/updates/0.13/7061_01_mangos_spell_proc_event.sql ALTER TABLE db_version CHANGE COLUMN required_7060_01_mangos_spell_proc_event required_7061_01_mangos_spell_proc_event bit; -- (47516) Grace (Rank 1) DELETE FROM `spell_proc_event` WHERE `entry` IN (47516); INSERT INTO `spell_proc_event` VALUES (47516, 0x0...
CREATE PROCEDURE [dbo].[spGetAllProduct] AS BEGIN SET NOCOUNT ON; SELECT Id, ProductName, [Description], RetailPrice, QuantityInStock, IsTaxable FROM dbo.Product ORDER BY ProductName END
<reponame>JoelBondurant/RandomCodeSamples DELIMITER $$ DROP FUNCTION IF EXISTS percentDifference$$ CREATE DEFINER=`root`@`localhost` FUNCTION `percentDifference` (arg1 DOUBLE, arg2 DOUBLE) RETURNS double DETERMINISTIC BEGIN IF arg2 = 0.0 THEN IF arg1 = 0.0 THEN RETURN 0.0; ELSE RETURN NULL; END IF; END...
<gh_stars>1-10 /****** Object: Table [T_Organisms_Change_History] ******/ /****** RowCount: 681 ******/ SET IDENTITY_INSERT [T_Organisms_Change_History] ON INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, O...
<filename>WIKI/maintenance/archives/patch-updatelog.sql CREATE TABLE /*$wgDBprefix*/updatelog ( ul_key varchar(255) NOT NULL, PRIMARY KEY (ul_key) ) /*$wgDBTableOptions*/;
-- Adding ar_deleted field for revisiondelete ALTER TABLE /*$wgDBprefix*/logging ADD log_deleted tinyint unsigned NOT NULL default '0';
<filename>src/main/resources/db/migration/V6.1.2__add_actual_courses.sql<gh_stars>10-100 REPLACE INTO course(category,code,compulsory,semester,active,start_year,finish_year,title,credits,branch,type,class_work_marks,mid_sem_marks,final_marks,total_marks,lecture_part,tutorial_part,practical_part,department_code) VALUES ...
-- game activity select pl.name player_name, pl.web_path player_web_path, g.name game_name, g.web_path game_web_path, dt.distinct_teams distinct_teams, t.name team_name, t.WEB_PATH team_web_path, g.time_position, g.TIME_UNIT_INDEX, gpt.name participation_type, gat.name activity_...
-- Name: VisualReviewStatusWithCollectionById -- Schema: posda_files -- Columns: ['collection', 'site', 'series_instance_uid', 'review_status', 'modality', 'series_description', 'series_date', 'num_equiv_classes', 'num_files'] -- Args: ['visual_review_instance_id', 'review_status'] -- Tags: ['by_collection', 'find_seri...
<gh_stars>10-100 -- AC GRANT SELECT, INSERT, UPDATE ON TABLE data_donation.api_token, data_donation.device_token, data_donation.exposure_risk_metadata, data_donation.exposure_window, data_donation.key_submission_metadata_with_client_metadata, data_donation.key_submission_metadata_with_user_metadata, data_...
<reponame>jhoaquinsito/portfolio-tracker -- readable: valuations per account and assets select a.name, a2.name, v.total_quantity, v.valuation_chf, v.valuation_usd, v.valuation_btc from valuations v, accounts a, assets a2 where v.account_id = a.id and v.asset_id = a2.id and a.account_type_id != 5; -- readable: valuati...
<filename>prisma/migrations/20210625022857_add_university_id_on_resource_assignment_quiz/migration.sql /* Warnings: - A unique constraint covering the columns `[activityId,universityId]` on the table `Assignment` will be added. If there are existing duplicate values, this will fail. - A unique constraint coverin...
-- MySQL dump 10.13 Distrib 8.0.12, for osx10.14 (x86_64) -- -- Host: localhost Database: bookstore -- ------------------------------------------------------ -- Server version 8.0.12 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
CREATE DATABASE IF NOT EXISTS `hotel_das_dianas` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `hotel_das_dianas`; -- MySQL dump 10.17 Distrib 10.3.15-MariaDB, for Win64 (AMD64) -- -- Host: 127.0.0.1 Database: hotel_das_dianas -- ------------------------------------------------------ -- Server version 10.3.15-MariaD...
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 27, 2018 at 11:24 PM -- Server version: 10.1.33-MariaDB -- PHP Version: 7.1.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>sql/comment/delete.sql DELETE FROM IB01_INDEX_COMMENT WHERE ENTITY_ID = :entity_id;
<reponame>edigonzales/oereb-db-data CREATE OR REPLACE VIEW live.vw_egrid_search AS SELECT t_id AS id, egris_egrid AS egrid, egris_egrid AS displaytext, LOWER(egris_egrid) AS searchtext FROM live.dm01vch24lv95dliegenschaften_grundstueck UNION ALL SELECT grundstueck.t_id, grundstueck.egr...
<reponame>rezaararsy/tes_nindya_karya -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 24 Okt 2020 pada 05.08 -- Versi server: 10.1.34-MariaDB -- Versi PHP: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zon...
<filename>Lista 2/Atividade 3 -TABLES.sql use db_farmacia_do_bem; create table tb_categoria( id int not null AUTO_INCREMENT, nome_cat varchar(50) not null, responsavel varchar(50) not null, PRIMARY KEY(id)); create table tb_produto( id int not null auto_increment, nome varchar(50) not n...
-- Generated by Ora2Pg, the Oracle database Schema converter, version 17.4 -- Copyright 2000-2016 <NAME>. All rights reserved. -- DATASOURCE: dbi:Oracle:host=sgd-nex2-db.stanford.edu;sid=SGD SET client_encoding TO 'UTF8'; \set ON_ERROR_STOP ON -- Archive tables DROP TABLE IF EXISTS nex.arch_contig CASCADE; CREATE ...
<reponame>nyzsirt/openstack<gh_stars>1-10 CREATE DATABASE sahara; GRANT ALL PRIVILEGES ON sahara.* TO 'sahara'@'localhost' \ IDENTIFIED BY 'SAHARA_DBPASS'; GRANT ALL PRIVILEGES ON sahara.* TO 'sahara'@'%' \ IDENTIFIED BY 'SAHARA_DBPASS'; CREATE DATABASE saharadb; GRANT ALL PRIVILEGES ON sahara.* TO 'sahara-common...
CREATE OR REPLACE FUNCTION ti.gettaxondatarecordscount(_taxonid integer) RETURNS TABLE(count bigint) LANGUAGE sql AS $function$ select count(dt.variableid) as count from ndb.variables AS var inner join ndb.data AS dt on var.variableid = dt.variableid where (var.taxonid = _taxonid) $function$
<gh_stars>10-100 -- RedShift HealthCheck ToolKit -- Version 1.0 -- Developed by Searce Data team -- Updates: https://thedataguy.in/ -- Disable cache for this session SET enable_result_cache_for_session = OFF; -- Drop the temp table for storing the checklist results DROP TABLE IF EXISTS rstk_metric_result; -- Create ...
<reponame>CC-UNIP-CAMPINAS/SAPEP-back -- AlterTable ALTER TABLE `Patient` MODIFY `addressNumber` VARCHAR(191) DEFAULT 'S/N'; -- AlterTable ALTER TABLE `User` ALTER COLUMN `updatedAt` DROP DEFAULT;
SELECT $1::INT + $2::INT;
<filename>inst/sql/sabl_lls_age1.sql SELECT year, station_number, startlat, startlong, sex, age, length, weight, age_notes FROM afsc.age_view WHERE country != 'Japan' AND length > 0 AND length > 0 AND year = 2020 AND age_notes is null
<reponame>Legoman99573/BanManager-WebAPI DROP TABLE `bm_ip_ban_all`; DROP TABLE `bm_ip_ban_records`; DROP TABLE `bm_ip_bans`; DROP TABLE `bm_ip_mute_records`; DROP TABLE `bm_ip_mutes`; DROP TABLE `bm_ip_range_ban_records`; DROP TABLE `bm_ip_range_bans`; DROP TABLE `bm_ip_unban_all`; DROP TABLE `bm_player_ban_all`; DROP...
<reponame>goldmansachs/obevo-kata CREATE PROCEDURE SP160(OUT MYCOUNT INTEGER) SPECIFIC SP160_93028 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE79;SELECT COUNT(*)INTO MYCOUNT FROM TABLE162;SELECT COUNT(*)INTO MYCOUNT FROM TABLE3;S...
<reponame>eliana-flo/folio-analytics<filename>sql/tmp/title_count/deprecated_title_count_v0.83.sql /** RM TITLE COUNT MAIN TABLES WITH NEEDED COLUMNS - inventory_instances - id - cataloged_date - discovery_suppress - instance_type_id - mode_of_issuance_id - previously_he...
<filename>src/test/regress/sql/round(date).sql<gh_stars>100-1000 set grammar to oracle; set datestyle='ISO,YMD'; SELECT ROUND (TO_DATE ('2000-10-20', 'YYYY-MM-DD'),'YEAR') nd FROM DUAL; SELECT ROUND (TO_DATE ('2000-7-2', 'YYYY-MM-DD'),'SYEAR') nd FROM DUAL; SELECT ROUND (TO_DATE ('2000-7-1', 'YYYY-MM-DD'),'YYYY') nd FR...
CREATE TABLE ARTICLE ( id int NOT NULL AUTO_INCREMENT, title varchar(1024) NOT NULL, slug varchar(1024) NOT NULL, body LONGTEXT not null, created_at int, updated_at INT, created_by int, updated_by int, PRIMARY KEY(id) ); alter table ARTICLE add constraint article_user_created_by_fk foreign key (created_by) ref...
-- @testpoint:openGauss关键字nvl(非保留),同时作为表名和列名带引号,与union结合查询合并两个SELECT 语句查询 drop table if exists "nvl"; create table "nvl"( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_double real, c_decimal decimal(38), c_number number(38), c_numeric numeric(38), c_char char(...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 13-10-2016 a las 01:46:04 -- Versión del servidor: 10.1.9-MariaDB -- Versión de PHP: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
SELECT Manufacturer, Model, SUM(CountOfOrdersId) AS TimesOrdered FROM( SELECT m.Manufacturer, m.Model, v.Id, COUNT(v.Id) AS CountOfOrdersId FROM Orders AS o LEFT JOIN Vehicles AS v ON v.Id = o.VehicleId RIGHT JOIN Models AS m ON m.Id = v.ModelId GROUP BY m.Manufacturer, m.Model, v.Id) AS H1 GROUP BY Manuf...
<reponame>mario-martinez-proyecto1/db-ajedrez set pages 66 set linesize 120 SET SERVEROUTPUT ON create or replace procedure p_hist_partidas(apodo varchar2) is apodo2 partidas.nickname1%type := apodo; registrado number; jugador varchar2(47); begin apodo2 := upper(apodo2); registrado := f_existe_nickname (apodo2); ...
<gh_stars>0 -- Function: public.fn_get_sf_block_groups() -- DROP FUNCTION public.fn_get_sf_block_groups(); CREATE OR REPLACE FUNCTION public.fn_get_sf_block_groups() RETURNS text AS $BODY$ begin return ( select response from public.vw_sf_geojson ); end; $BODY$ LANGUAGE plpgsql VOLATILE COST 100; ALTER ...
<reponame>farizardin/PBKK<filename>assets/sql/simkwu-mysql.sql -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 01, 2018 at 12:27 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0;...
<reponame>iangodin/dhcpdb CREATE TABLE dhcp_lease ( ip_addr INT UNSIGNED NOT NULL, mac_addr BINARY(6) NOT NULL, expiration DATETIME NOT NULL, PRIMARY KEY(ip_addr) ); CREATE TABLE dhcp_options ( id BIGINT UNSIGNED NOT NULL, ip_addr_from INT UNSIGNED NOT NULL, ip_addr_to INT UNSIGNED NOT NULL, options VARBINAR...
-- file:collate.icu.utf8.sql ln:404 expect:true CREATE TABLE collate_dep_test4t (a int, b text)
USE [perpetuumsa] GO PRINT N'PATCH 26: GAMMA BEGINS - PHASE 1'; ------------------------------------------------------ -- Patch 26: Gamma phase 1/3 --00_harvestlog_table_proc__2021_10_15.sql --00_npcEscalations_createtable_col__2021_09_18.sql --01_OPP_GAMMA_ZONE_INIT__2021_06_09.sql --02_decor_all_gammas__2021_08_06.s...
<reponame>NightkingCH/casestudy-webtech<filename>BusinessStreamline.Sql/dbo/Tables/Angebot.sql CREATE TABLE [dbo].[Angebot] ( [AngebotId] INT NOT NULL IDENTITY(1,1), [ErstelltAm] DATETIME NOT NULL DEFAULT GETDATE(), [Status] INT NOT NULL DEFAULT 0, --0 = Offen; 1 = Akzep...
<reponame>laxmanvijay/QDM-QICore-Conversion<gh_stars>1-10 library SepsisLactateClearanceRate version '1.0.001' using FHIR version '4.0.1' include MATGlobalCommonFunctions_FHIR version '4.1.000' called Global codesystem "LOINC": 'urn:oid:2.16.840.1.113883.6.1' codesystem "CPT": 'urn:oid:2.16.840.1.113883.6.12' codesy...
<gh_stars>0 INSERT INTO KREW_DOC_TYP_PROC_T (DOC_TYP_PROC_ID,NM,DOC_TYP_ID,INIT_RTE_NODE_ID,INIT_IND,VER_NBR) VALUES (KREW_RTE_NODE_S.NEXTVAL,'PRIMARY',(SELECT DOC_TYP_ID FROM KREW_DOC_TYP_T WHERE DOC_TYP_NM = 'KualiDocument' AND DOC_TYP_VER_NBR = 1),(SELECT RTE_NODE_ID FROM KREW_RTE_NODE_T WHERE DOC_TYP_ID = (SELE...
select l_orderkey, p_name, n_name from lineitem_large, orders, part, customer_large, nation where l_orderkey = o_orderkey and l_partkey = p_partkey and o_custkey = c_custkey and c_nationkey = n_nationkey
<filename>jpa-tutorial/Tutorials/RetrieveData/migration/V1_0__olingo.sql SET schema "OLINGO"; -- create schema "OLINGO"; --------BUSINESS PARTNER--------------------------------------------------------------------------------------------------------- CREATE TABLE "OLINGO"."BusinessPartner"( ...
<reponame>binarylei/spring-boot-test-support<gh_stars>1-10 drop table if exists user; CREATE TABLE user ( id bigint(20) NOT NULL AUTO_INCREMENT, name varchar(255) DEFAULT NULL, PRIMARY KEY (id) ) ENGINE=innodb ;
--select * from record limit 1,5; --select sum(fee) from record group by time; --select * from record group by xiaoleiid having sum(fee)>50; --select distinct time from record; --select * from record order by time desc; --select * from record inner join xiaolei on record.xiaoleiid=xiaolei._id; --select * from record ...
CREATE TABLE [dm].[dim_date] ( [date_id] INT NOT NULL, [date] DATE NOT NULL, [week_no] AS datepart(wk, [date]), [month_no] AS month([date]), [month_name] AS datename(MM,[date]), [quarter] AS datename(q,[date]), [year] AS year([date]) , [created] DATETIME DEFAULT(getdate()) CONSTRAINT [PK_dim_date] ...
<reponame>rasitha1/RBatisNet use [IBatisNet] if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Coupons]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) BEGIN drop table [dbo].[Coupons] END CREATE TABLE [dbo].[Coupons] ( [Coupon_ID] [int] NOT NULL , [Coupon_Code] [varchar] (32) NOT NULL ) ON [PRI...
<filename>sql/queries.sql /* Get referencing tables and keys - these are all the parent tables we are referencing */ SELECT rel_kcu.table_schema as primary_schema, rel_kcu.table_name as primary_table, kcu.column_name as fk_column, kcu.constraint_name, (SELECT CASE WHEN count(*) > 1 THEN true ELSE false END...
-- grading create table o_grad_to_identity ( id bigserial, creationdate timestamp not null, lastmodified timestamp not null, g_status varchar(16) default 'activated' not null, fk_identity int8 not null, fk_entry int8 not null, primary key (id) ); alter table o_grad_to_identity add constraint grad_...
SELECT (1,'') IN ((-1,'')); SELECT (1,'') IN ((1,'')); SELECT (1,'') IN (-1,''); SELECT (1,'') IN (1,''); SELECT (1,'') IN ((-1,''),(1,'')); SELECT (number, toString(number)) IN ((1, '1'), (-1, '-1')) FROM system.numbers LIMIT 10; SELECT (number - 1, toString(number - 1)) IN ((1, '1'), (-1, '-1')) FROM system.numbers ...
<filename>usr/module/user/sql/social.sql # Pi Engine schema # http://pialog.org # Author: <NAME> <<EMAIL>> # -------------------------------------------------------- # ------------------------------------------------------ # User custom compound # >>>> # Entity for user custom compound: social tools CREATE TABLE `{so...
-- p1 ------------------------------------------------------ DELIMITER ### CREATE PROCEDURE usp_get_employees_salary_above_35000() BEGIN SELECT `first_name`, `last_name` FROM `employees` WHERE `salary` > 35000 ORDER BY `first_name`, `last_name`, `employee_id`; END ### DELIMITER ; CALL usp_get_employees_sala...
CREATE TABLE System_Options ( system_option_id integer PRIMARY KEY AUTOINCREMENT, option_name varchar, option_value varchar ); CREATE TABLE System_Option_Changes ( system_option_change_id integer PRIMARY KEY AUTOINCREMENT, system_option_id integer, timestamp datetime DEFAULT CURRENT_TIMESTAMP, change_type varch...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : lun. 15 mars 2021 à 21:44 -- Version du serveur : 10.3.27-MariaDB-0+deb10u1 -- Version de PHP : 7.3.19-1~deb10u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : q1 Source Server Type : MySQL Source Server Version : 50553 Source Host : localhost:3306 Source Schema : laravel Target Server Type : MySQL Target Server Version : 50553 File Encoding : 65001 Date: 25/01/20...
SELECT COUNT(*) FROM Countries AS c LEFT JOIN MountainsCountries AS mc ON mc.CountryCode = c.CountryCode WHERE mc.MountainId IS NULL
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 26, 2019 at 07:41 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
DROP TABLE IF EXISTS meta; CREATE TABLE meta ( key TEXT UNIQUE PRIMARY KEY, value TEXT ); INSERT INTO meta (key, value) VALUES ("version", "001"); DROP TABLE IF EXISTS syndicate; CREATE TABLE syndicate ( id INTEGER PRIMARY KEY, owner TEXT UNIQUE NOT NULL, year INTEGER NOT NULL ); DROP TABLE IF EXISTS user; C...
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'; CREATE TABLE IF NOT EXISTS `departamentos` ( `id_departamento` INT(11) NOT NULL AUTO_INCREMENT , `departamento` VARCHAR(100) NULL D...
<reponame>rodglins/SQL_databases REM INSERTING into SYS.CLI_TS$ SET DEFINE OFF;
<reponame>GetsEclectic/instagram-helper create table WHITELIST_REASON ( REASON varchar(128) primary key ); insert into WHITELIST_REASON values ('scanned when pruning mutual followers'); insert into WHITELIST_REASON values ('manually whitelisted');
<reponame>Eric-Exasol/database-migration open schema database_migration; /* This script will generate create table and create import statements to load all needed data from a Vectorwise database. Automatic datatype conversion is applied whenever needed. Feel free to adjust it. */ -- in EXASOL use JDBC driver for Jav...
<gh_stars>0 DROP DATABASE IF EXISTS ProfeSoft; CREATE DATABASE ProfeSoft; USE ProfeSoft; -- ----------------------------------------------------- -- Table `biblioteca`.`Profesor` -- ----------------------------------------------------- CREATE TABLE Profesor ( IdProfesor INT PRIMARY KEY AUTO_INCREMENT, PrimerNombre VA...
<filename>country/cldr/sw_TZ/country.sqlserver.sql CREATE TABLE country (id NVARCHAR(2) NOT NULL, name NVARCHAR(64) NOT NULL, PRIMARY KEY (id)); INSERT INTO [country] ([id], [name]) VALUES ('ZA', 'Afrika ya Kusini'); INSERT INTO [country] ([id], [name]) VALUES ('AR', 'Ajentina'); INSERT INTO [country] ([id], [name]) V...
<reponame>pensnarik/domains-database create table public.queue ( id serial primary key, site_id integer not null, session_id integer not null, task_id integer not null, domain varchar(255) not null, job varchar(126), ...
<reponame>ckanitz/oRO-Bot CREATE TABLE IF NOT EXISTS `module_builds_builds` ( `id` INT NOT NULL AUTO_INCREMENT, `author` VARCHAR(45) NULL, `title` VARCHAR(45) NULL, `description` TEXT(255) NULL, `skills` TEXT(255) NULL, `stats` TEXT(255) NULL, `gear` VARCHAR(45) NULL, `class` INT NOT NULL, PRIMARY KEY...
use ck2; create or replace function title_score(title_id varchar(100)) returns int unsigned return ( select case substring(title_id, 1, 2) when 'e_' then 256 when 'k_' then 64 when 'd_' then 16 when 'c_' then 4 when 'b_' then 1 els...
<reponame>zhanght86/data-exchange-platform<filename>sql/create_dat.sql<gh_stars>1-10 /*==============================================================*/ /* DBMS name: ORACLE Version 11g */ /* Created on: 2018/5/26 16:51:26 */ /*================================...
CREATE TABLE STATUSES( STATUS_ID INT NOT NULL IDENTITY (1, 1) PRIMARY KEY, STATUS_DESCRIPTION varchar(15) NOT NULL );
use payroll execute p_add_time_entry @employee_id=20, @entry_date='2018-04-29 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=43, @entry_date='2018-04-29 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=51, @entry_date='2018-04-29 00:00:00', @hours_worked=7 execute p_add_time_entry @e...
<reponame>zachradtka/Data-Profiler insert into applications (app,key,created_at,updated_at) values('Data Profiler', 'dp-rou-key', current_timestamp, current_timestamp);
<filename>chapter_008/db/scripts/update_003.sql create table if not exists users ( id serial primary key not null, name varchar(2000), login varchar(2000), password varchar(2<PASSWORD>), email varchar(2000), date varchar(2000) );
-- MySQL Script generated by MySQL Workbench -- Mon Jan 13 03:36:01 2020 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON...
<filename>db/pgsql/db-scripts/create-fs-20/sql/create_mals_05_plpgsql.sql SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', 'mals_app', true); SET check_function_bodies = false; SET client_min_messages = warni...
-- init database in MySQL drop database if exists scaling_ds_10; create database scaling_ds_10 default charset utf8; drop database if exists scaling_ds_11; create database scaling_ds_11 default charset utf8; drop database if exists scaling_ds_12; create database scaling_ds_12 default charset utf8; -- create table i...
--THIS FILE CONTAINS SQL WHICH CREATES TABLES AS USED BY THE MOCK WEBSTORE -- This CLP file was created using DB2LOOK Version "11.1" -- Timestamp: Wed Jun 14 18:19:14 2017 -- Database Name: WEBSTORE -- Database Manager Version: DB2/LINUXX8664 Version 11.1.2.2 -- Database Codepage: 1208 -- Database Collating Se...
CREATE TABLE IF NOT EXISTS PERSON ( ID BIGINT NOT NULL AUTO_INCREMENT, FIRST_NAME VARCHAR(255), LAST_NAME VARCHAR(255), EMAIL VARCHAR(255), PRIMARY KEY (ID) );
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Окт 15 2019 г., 01:42 -- Версия сервера: 8.0.15 -- Версия PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
<reponame>CGATechnologies/sctp2 DROP PROCEDURE IF EXISTS runCommunityBasedTargetingRankingOnEligibleHouseholds; DELIMITER $$ CREATE PROCEDURE runCommunityBasedTargetingRankingOnEligibleHouseholds(IN _cbt_session_id bigint, IN _pev_session_id bigint) COMMENT 'This procedure will rank households based on the pmt_sco...
<reponame>olgarozhdestvina/Applied-Databases<gh_stars>0 -- insert into subject ( -- subject, description -- ) Values ( -- 'Applied Databases', -- 'The art of SQL and NoSQL Mastery' -- ); DELETE FROM subject WHERE subject = 'Applied Databases';
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Client : localhost -- Généré le : Sam 13 Janvier 2018 à 20:47 -- Version du serveur : 10.1.21-MariaDB -- Version de PHP : 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Base de données : `velib` -- -- ...
<gh_stars>0 -- ChaFes event initialization CREATE TABLE `event_player_ranking_$event_id` ( user_id INTEGER NOT NULL PRIMARY KEY, -- Player user ID total_points INTEGER NOT NULL, -- Total event points live_difficulty_id_list TEXT, -- ChaFes live_difficulty_id list or NULL if not started exp_count INTEGER...
<reponame>Flo-Slv/CS50-2022 SELECT movies.title, ratings.rating FROM movies JOIN ratings ON movies.id=ratings.movie_id WHERE movies.year=2010 ORDER BY ratings.rating DESC, movies.title;
USE demographics GO IF OBJECT_ID(N'[dbo].[usp_LoadFactStaff]','P') IS NOT NULL DROP PROCEDURE [dbo].[usp_LoadFactStaff] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[usp_LoadFactStaff] AS BEGIN /* Call usp_LoadFactStaff to insert into the school year dim...
SELECT m_name AS '이름', SUM(d_category * d_ammount) AS '잔액' from `deposit_history` where t_team = 'NON' GROUP BY m_name;
<reponame>cviorel/automation<filename>src/configurations/SQLQueries/CycleErrorLogGetScript.sql SELECT [job_id], [name] FROM [msdb].[dbo].[sysjobs] WHERE name = 'Cycle Error Log'
/* Notes: 1) First 2 attributes are included so lineage tracing and source primary key identification is clearly contained in the prospective extract file. 2) The output IDENTITY_CONTEXT clearly indicates the primary source of the extract file. 3) The output SOURCE_PK will always contain the column(s) w...
<gh_stars>1-10  -- ============================================= -- Author: (C<NAME>; <NAME>) -- Create date: 2014-07-10 -- Updates Infos in JobExecution -- Changes: -- 2016-01-21, CS: Added Parameter @IsFinal, if not 1 no end time is set -- ============================================= CREATE PROCEDURE [etljob].[p...
<reponame>ntiufalara/openerp7 -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = public, pg_catalog; SET default_tabl...
alter table medicine_sale add constraint medicine_sale_fk2 foreign key (staff_id) references staff (id);
<filename>db/src/main/resources/db/migration/V20180302140511__add_auditing_to_referral.sql<gh_stars>100-1000 ALTER TABLE referral ADD COLUMN creation_date TIMESTAMP; ALTER TABLE referral ADD COLUMN last_modified_date TIMESTAMP; ALTER TABLE referral ADD COLUMN created_by VARCHAR(100); ALTER TABLE referral ADD CO...
<gh_stars>10-100 """ Table: Employees +---------------+---------+ | Column Name | Type | +---------------+---------+ | employee_id | int | | employee_name | varchar | | manager_id | int | +---------------+---------+ employee_id is the primary key for this table. Each row of this table indicates that ...
-- file:json.sql ln:497 expect:true SELECT jsa FROM json_populate_record(NULL::jsrec, '{"jsa": null}') q