sql
stringlengths
6
1.05M
<reponame>yudhi-irawan/ci4mcg_testing -- Modul Description : Tabel Sex -- Date : 2022-01-20 -- Created by. : <NAME> -- Contact person : IG: @iam.yudhi_irawan -- File name : sex.sql -- Last Edited : 2022-03-15 -- MCG - Massive CRUD Generator for CI4-AdminLT3-MySQL ver. Mar 2022-Free Version -...
DROP DATABASE burgers_db; CREATE DATABASE burgers_db; USE burgers_db; -- create table burgers -- CREATE TABLE burgers ( id INT AUTO_INCREMENT NOT NULL, burger_name VARCHAR(80) NOT NULL, devoured BOOLEAN DEFAULT false, PRIMARY KEY(id) );
<gh_stars>0 INSERT INTO tymly.todos (user_id, state_machine_title, state_machine_category, todo_title, description, required_human_input, launches, id) VALUES ('test-user', 'Process expense claim', 'expenses', '<NAME>', '<NAME> is claiming $12 for A pack of Duff Beer', '{}', '{}', '5200987c-bb03-11e7-abc4-cec278b6b...
delimiter | CREATE FUNCTION get_action_group_id (p_name varchar(255)) RETURNS int(11) BEGIN DECLARE l_result int(11); SELECT id INTO l_result FROM action_groups WHERE name=p_name; RETURN l_result; END; | delimiter ;
select supp_nation, cust_nation, l_year, sum(volume) as revenue from (select n1.n_name as supp_nation, n2.n_name as cust_nation, strftime('%Y', l_shipdate) as l_year, l_extendedprice * (1 - l_discount) as volume from supplier, lineitem, orders, customer, nation n1, nation n2 where s_suppkey = l_suppkey and o_orderkey =...
-- 比赛使用地图/模式 DROP TABLE IF EXISTS `adm_map_mode_stats`; CREATE TABLE `adm_map_mode_stats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(10) NOT NULL, `type` enum('MAP','MODE') NOT NULL, `user_count` int(10) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
<reponame>sidbmw/ICS4U<gh_stars>1-10 create or replace procedure eom_student_sort is v_sort_id NUMBER:= 1; BEGIN FOR r_std IN ( SELECT class, last_name, first_name, ROWID FROM eom_students ORDER BY class, ...
CREATE SCHEMA IF NOT EXISTS Freedom COLLATE utf8mb4_general_ci;
<reponame>jsturek/UNL_MediaHub ALTER TABLE `media` CHANGE `datecreated` `datecreated` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ; ALTER TABLE `media` ADD `dateupdated` TIMESTAMP NULL AFTER `datecreated` ;
-- file:rowsecurity.sql ln:1632 expect:true ALTER TABLE r2 NO FORCE ROW LEVEL SECURITY
# Fix existing recaptcha settings with newer section,subsection,name data, that may have been missed by patch 433. UPDATE IGNORE settings SET section = 'APIs', subsection = 'recaptcha', NAME = 'secretkey' WHERE name = 'recaptchasecretkey'; UPDATE IGNORE settings SET section = 'APIs', subsection = 'recaptcha', NAME = 's...
-- Microsoft AspNet identity -- see https://docs.microsoft.com/en-us/aspnet/identity/overview/getting-started/introduction-to-aspnet-identity CREATE TABLE AspNetRoles ( Id nvarchar(128) NOT NULL, Name nvarchar(256) NOT NULL, PRIMARY KEY (Id) ); CREATE TABLE AspNetUserClaims ( Id int IDENTITY...
SELECT pg_get_indexdef(idx.indexrelid) || ';' FROM pg_stat_all_indexes i JOIN pg_class c ON (c.oid = i.relid) JOIN pg_namespace n ON (n.oid = c.relnamespace) JOIN pg_index idx ON (idx.indexrelid = i.indexrelid) WHERE NOT idx.indisprimary AND NOT idx.indisunique AND i.relname NOT LIKE 'pg_%' AND i.idx_scan = 0 ORDER BY ...
<gh_stars>1-10 set @concept_id = 0; set @answer_concept_id = 0; set @concept_name_short_id = 0; set @concept_name_full_id = 0; SELECT foreign_key INTO @concept_id FROM person_attribute_type WHERE name = 'occupation'; call add_concept(@answer_concept_id, @concept_name_short_id, @concept_name_full_id, 'Agriculture', 'a...
<filename>models/base/sf_lead.sql with source as ( select * from {{var('schema')}}.lead ), renamed as ( select id as lead_id, -- keys ownerid as owner_id, convertedopportunityid as opportunity_id, convertedaccountid as account_id, convertedcontactid as conta...
INSERT INTO `sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1010079125429329921', 'cardOncecardRecharge', 'card', '[0],[card],', '次卡充值记录', '', '/cardOncecardRecharge', '99', '2', '1', NULL, '1', '0'); INSERT INTO `sys_menu` (`id`, `code...
<gh_stars>0 -- @testpoint:opengauss关键字barrier(非保留),作为视图名 --关键字barrier作为视图名,不带引号,创建成功 CREATE or replace VIEW barrier AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; --清理环境 drop view barrier; --关键字barrier作为视图名,加双引号,创建成功 CREATE or replace VIEW "barrier" AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_d...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 26, 2019 at 05:41 AM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
<reponame>cscl-git/digit-bpa alter table eg_wf_states add column sla timestamp without time zone; alter table eg_wf_state_history add column sla timestamp without time zone;
-- CreateEnum CREATE TYPE "Time" AS ENUM ('Past'); -- CreateEnum CREATE TYPE "Gender" AS ENUM ('Feminino', 'Masculino', 'Outros'); -- CreateEnum CREATE TYPE "Status" AS ENUM ('ANALISANDO', 'APROVADO', 'CONCLUIDO', 'ENVIADO', 'ENTREGUE'); -- CreateTable CREATE TABLE "Cliente" ( "id" SERIAL NOT NULL, "name" TE...
<gh_stars>0 ALTER TABLE claim ADD COLUMN submission_operation_indicators JSONB NULL;
<gh_stars>100-1000 DELETE FROM wards; INSERT INTO wards (id, constituency_id, name, code) VALUES ('395b4d40-5074-4f2c-9c68-ea352f909402', '911a68a5-5689-418d-b63d-b21545345f03', 'Bablake', 'E05001218'), ('5e99c344-0c0a-4c77-a550-54581d8a8743', '0d338b99-3d15-44f7-904f-3ebc18a7ab4a', '<NAME>', 'E05001219'), ('330...
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 13, 2018 at 04:19 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
SELECT d.Name Department, e.Name Employee, e.Salary FROM Employee e JOIN ( SELECT Name, DepartmentId, Max(Salary) as Max_Salary FROM Employee e GROUP BY e.DepartmentId ) s ON e.DepartmentId = s.DepartmentId JOIN Department d ON e.DepartmentId = d.Id WHERE e.Salary = s.Max_Sal...
<filename>scripts/query-store/QS_last_n_queries.sql<gh_stars>1-10 SELECT TOP 10 qt.query_sql_text, q.query_id, qt.query_text_id, p.plan_id, rs.last_execution_time FROM sys.query_store_query_text AS qt JOIN sys.query_store_query AS q ON qt.query_text_id = q.query_text_id JOIN sys.query_store_plan A...
<filename>web_inventory.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.31.10 -- Generation Time: Apr 05, 2020 at 07:04 PM -- Server version: 10.1.28-MariaDB -- PHP Version: 5.6.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zon...
-- DROP DATABASE IF EXISTS `pig_codegen`; -- CREATE DATABASE `pig_codegen` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- USE `pig_codegen`; /* * Copyright (c) 2020 pig4cloud Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (t...
use datastax_transactions_demo; truncate products; truncate buyers_orders; drop keyspace datastax_transactions_demo;
use nbr; SELECT '----------------------------------------------------------------------------------------------------------------------------'; select 'nbr Running SPD Test...'; delimiter $$ SELECT 'PrivateDB_SPD_Test 1'$$ source D:/BXERP/branches/20190902_v1_1/src/nbr/src/sql/SP/Doctor/PrivateDB/SPD_Commodity_Check...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50731 Source Host : localhost:3306 Source Schema : sparepart Target Server Type : MySQL Target Server Version : 50731 File Encoding : 65001 Date: 24/11/2021 ...
CREATE OR REPLACE PROCEDURE getTaggedPosts( IN user1 INTEGER, IN tag1 VARCHAR(20)) LANGUAGE SQL BEGIN ATOMIC DECLARE cur CURSOR WITH RETURN TO CALLER FOR SELECT * FROM Post WHERE EXISTS( SELECT ...
select coalesce(cast(( select LearnerDestinationandProgression.LearnRefNumber, LearnerDestinationandProgression.ULN, ( select DPOutcome.OutType, DPOutcome.OutCode, cast(DPOutcome.OutStartDate as date) OutStartDate, cast(DPOutcome.OutEndDate as date) OutEndDate, cast(DPOutcome.OutCollDat...
<reponame>rohandudam/flask-mysql-employee-database-app -- create a database with name employee_data CREATE DATABASE IF NOT EXISTS `employee_data`; use `employee_data`; -- create a table with name employee CREATE TABLE IF NOT EXISTS `employee` ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, email...
<filename>Solution_Exam3.sql<gh_stars>0 /***Rank each territory according to total sales (unit price * quantity) for a given month***/ SELECT MONTH(salesorderdetail.ModifiedDate) MONTH, YEAR(salesorderdetail.ModifiedDate) YEAR, `salesterritory`.`Name` TerritoryName, SUM(OrderQTy) TotalQty, UnitPrice, SUM(O...
<gh_stars>0 /* --- KYSYMYS --- (Käytä tehtävässä LIKE tai REGEXP -operaattoria) 8. Tulevaa viikonlopun kampanjaa varten tarvitaan lista niiden elokuvien nimistä, vuokran hinnasta ja luokituksesta, joiden kuvauksessa mainitaan sana 'amazing'? */
<gh_stars>0 INSERT batchItems(ID,Titel,Categorie,Postcode,Locatie,Land,Verkoper,Prijs,Valuta,Conditie,Thumbnail,Beschrijving) VALUES (131328555059,'VICTOR Stirnband Wristband Schweißband Frotteeschweißband - Farbe: schwarz',81625,'27386','Duitsland','DE','victor-markenshop','6.99','EUR','Nieuw','img131328555059.jpg','<...
<reponame>lgcarrier/AFW SET DEFINE OFF; CREATE INDEX AFW_12_LIEN_GR_G_GR_U_FK2 ON AFW_12_LIEN_GR_GADGT_GR_UTILS (REF_GROUP_GADGT_UTILS) LOGGING /
<reponame>shutingrz/prefix2as CREATE TABLE route4( id bigint auto_increment primary key, history_id integer, date bigint unsigned, asnum bigint unsigned, prefix varchar(18), start_ip bigint unsigned, end_ip bigint unsigned, size integer unsigned );
<filename>migreringer/src/main/resources/db/migration/defaultDS/1.0/V1.1_75__utvid_saksnummer_relatert.sql<gh_stars>1-10 ALTER TABLE IAY_RELATERT_YTELSE ADD COLUMN SAKSREFERANSE VARCHAR(36) NULL; COMMENT ON COLUMN IAY_RELATERT_YTELSE.SAKSREFERANSE IS 'Referanse til saken som er innhentet';
DROP VIEW IF EXISTS adresser CASCADE; CREATE OR REPLACE VIEW adresser AS SELECT A.id as e_id, A.status as e_status, A.oprettet as e_oprettet, A.ikraftfra as e_ikraftfra, A.aendret as e_aendret, A.nedlagt as e_nedlagt, A.etage, A.doer, A.adgangspunktkilde as kilde, A.adgangsadre...
/* 2-1-4. SELECT③ ORDER BY, SELECT * receiptテーブルの全てのフィールドに5件分、データ取得する ただし、user_idの昇順、read_atの降順に並び替える */ SELECT * FROM receipt ORDER BY user_id ASC, read_at DESC LIMIT 5 ;
<gh_stars>1-10 CREATE TABLE "IWP_DOCUMENTS" ( "DOCUMENT_ID" NUMBER NOT NULL, "OFFENDER_BOOK_ID" NUMBER(10,0), "DOCUMENT_NAME" VARCHAR2(50 CHAR) NOT NULL, "TEMPLATE_ID" NUMBER NOT NULL, "COMMENT_TEXT" VARCHAR2(256 CHAR), "ACTIVE_FLAG" VARCHAR2(1 CHAR) DEFAULT 'Y' NOT NULL, "LOCATION" VAR...
<reponame>ashish1516/cap2<gh_stars>0 INSERT INTO `student`.`study_details_tbl` (`school_id`, `student_id`, `study_time_in_hr`, `health`, `internet`, `country`, `year`, `marks`) VALUES ('33-9516954','1',6,'great','TRUE','India','2020',54); INSERT INTO `student`.`study_details_tbl` (`school_id`, `student_id`, `study_tim...
insert into VALID_NARR_FORMS (FORM_NAME,MANDATORY,NARRATIVE_TYPE_CODE,OBJ_ID,UPDATE_TIMESTAMP,UPDATE_USER,VALID_NARR_FORMS_ID) values ('PHS_Fellowship_Supplemental_1_2-V1.2','N',88,SYS_GUID(),sysdate,'admin',SEQ_VALID_NARR_FORMS_ID.nextVal); insert into VALID_NARR_FORMS (FORM_NAME,MANDATORY,NARRATIVE_TYPE_CODE,OBJ_ID,U...
<gh_stars>0 XQUERY 5
create table users ( `id` int unsigned not null AUTO_INCREMENT, `name` varchar(255) not null, `age` int unsigned not null, primary key (`id`) ); insert into users values(1, '山田太郎', 25); insert into users values(2, '田中花子', 31);
<gh_stars>0 # --- First database schema - HSQL # --- !Ups CREATE TABLE TIMETABLE (ID bigint, HOURS integer); INSERT INTO TIMETABLE (ID, HOURS) VALUES (162910613, 1); INSERT INTO TIMETABLE (ID, HOURS) VALUES (162712503, 2); INSERT INTO TIMETABLE (ID, HOURS) VALUES (162711942, 3); INSERT INTO TIMETABLE (ID, HOURS) VALU...
<gh_stars>1-10 -- Verify ggircs:materialized_view_activity on pg BEGIN; select * from swrs_transform.activity where false; ROLLBACK;
create table warehouse ( w_id integer not null, w_name varchar(10) not null, w_street_1 varchar(20) not null, w_street_2 varchar(20) not null, w_city varchar(20) not null, w_state char(2) not null, w_zip char(9) not null, w_tax numeric(4,4) not null, w_ytd numeric(12,2) not null, primary k...
PRAGMA foreign_key_list(`~a`)
DROP TABLE IF EXISTS Usuario CASCADE; DROP TABLE IF EXISTS Comando CASCADE; DROP TABLE IF EXISTS InstrucaoGravada CASCADE; DROP TABLE IF EXISTS InstrucaoComando CASCADE; CREATE TABLE Usuario( Cod_Usuario bigserial CONSTRAINT Key2 PRIMARY KEY, End_Foto Bytea, Cod_Senha text NOT NULL, Nom_Usuario text NO...
<reponame>Project-Gateway/db-control<filename>database/schema/tables/account_emails.sql CREATE TABLE account_emails ( id bigserial, email character varying COLLATE pg_catalog."default" NOT NULL, account_id bigint NOT NULL, created_at timestamp without time zone, updated_at timestamp without time zone, CONST...
<reponame>scratchyone/hastebin-react<filename>prisma/migrations/20210319040346_init/migration.sql -- CreateTable CREATE TABLE "Document" ( "id" TEXT NOT NULL PRIMARY KEY, "text" TEXT NOT NULL );
<filename>src/db/scripts/populate.sql<gh_stars>0 \c userlenditdb_dev INSERT INTO public."user" (useremail,"name",whatsappnumber,"password",latitude,longitude) VALUES ('<EMAIL>','<NAME>','61982034567','$2y$12$KQbC.IJI1diNZ1xWBblRv./0r38eW0Ybh3pkna2zj9cqDcNFYycj2 ',-16.019722,-48.061694), ('<EMAIL>','<NAME>','6199...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 03, 2020 at 05:20 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>data/migrations/1608252101055-database_normalization.sql CREATE DATABASE lab14; -- This step is taken to create a template as a backup for our table we are normalizing CREATE DATABASE lab14_normal WITH TEMPLATE lab14; -- This step is creating a copy of our template for us to normalize CREATE TABLE AUTHORS(i...
SELECT `department_id`, MIN(`salary`) AS `minimum_salary` FROM `employees` WHERE (`department_id` = 2 OR `department_id` = 5 OR `department_id` = 7) AND `hire_date` > '2000-01-01' GROUP BY `department_id` ORDER BY `department_id` ASC;
<filename>SQL/Stored Procedure.sql DROP PROCEDURE IF EXISTS get_num_of_seasons_on_series; DELIMITER // CREATE PROCEDURE get_num_of_seasons_on_series(IN s_name varchar(255), OUT num_of_seasons INT) BEGIN SELECT COUNT(*) INTO num_of_seasons FROM season WHERE season_series_id = (SELECT series_id...
<reponame>rmariano/itarch WITH deleted as ( DELETE FROM orders WHERE order_date < '2016-01-01' RETURNING * ) INSERT INTO archive_orders select * from deleted;
<filename>storage/sql/Manager/sale_record_explode_pcode.sql SELECT o2.*, MAX(o1.corpName) AS corpName, ISNULL(o1.total, 0) - ISNULL(o1.ReturnTotal, 0) as record FROM ( SELECT PIS_Goods.Code AS Code, MAX(PIS_Goods.Name) AS Name, FAS_Corp.Name AS corpName, SUM(CCS_OrderDetails.SubT...
-- The SQL allows to make consults that group values in the form we need. -- In this case we need to sum all the values in the column value. -- Using the function SUM, we have the expected result SELECT SUM(VALUE) FROM table1 --for being a SELECT command, we can put conditions, for example, calculate the sum of all pu...
INSERT INTO permission VALUES ('11f0e0d8-6096-48fe-9724-64ea2dc3a456', 'G40', 'Quản lý phòng làm việc', 1, '2020-12-05 11:05:34.455795', '2020-12-05 11:05:47.108736');
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for gen_data_source_config -- ---------------------------- DROP TABLE IF EXISTS `gen_data_source_config`; CREATE TABLE `gen_data_source_config` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', `name` varchar(50) ...
-- file:rules.sql ln:60 expect:true create table rtest_emp (ename char(20), salary money)
<filename>internal/endtoend/testdata/emit_empty_slices/stdlib/query.sql CREATE TABLE bar (id serial not null); -- name: ListBar :many SELECT * FROM bar;
--List the employee number, last name, first name, gender, and salary of each employee SELECT e.emp_no employee_number, e.last_name, e.first_name, e.gender, s.salary FROM employees e JOIN salaries s ON e.emp_no = s.emp_no ORDER BY e.emp_no; --List employees who were h...
-- 2018-06-02T08:57:51.039 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2018-06-02 08:57:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=546203 ; -- 2018-06-02T08:58:38.334 -- I forgot to set the DICTIONARY_ID_COMMENTS ...
<gh_stars>1-10 -- Copyright 2018 Google Inc. -- -- 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 applicable law ...
-- ============================================= -- Create basic stored procedure template -- ============================================= -- Drop stored procedure if it already exists IF EXISTS ( SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE SPECIFIC_SCHEMA = N'dbo' AND SPECIFIC_NAME = N'spDeleteMo...
<reponame>SKalt/pg_sql_parser_tests SELECT f.* FROM films f, (VALUES('MGM', 'Horror'), ('UA', 'Sci-Fi')) AS t (studio, kind) WHERE f.studio = t.studio AND f.kind = t.kind; UPDATE employees SET salary = salary * v.increase FROM (VALUES(1, 200000, 1.2), (2, 400000, 1.4)) AS v (depno, target, increase) WHERE empl...
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 25, 2015 at 11:16 PM -- Server version: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
CREATE TABLE song( id serial not null , name VARCHAR(60) , artist_id int not null , url_source VARCHAR(1000) , PRIMARY KEY (id) ); CREATE TABLE artist( id serial not null , name VARCHAR(60) , PRIMARY KEY (id) ); CREATE TABLE "user" ( id serial NOT NULL, email VARCHAR(60) NOT NULL , password VARCHAR(60) N...
<filename>tournament.sql -- Table definitions for the tournament project. -- -- Put your SQL 'create table' statements in this file; also 'create view' -- statements if you choose to use it. -- -- You can write comments in this file by starting them with two dashes, like -- these lines here. DROP DATABASE IF EXISTS to...
<filename>Database/AdventureWorks2014/Tables/Production.UnitMeasure.sql CREATE TABLE [Production].[UnitMeasure] ( [UnitMeasureCode] [nchar] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [Name] [dbo].[Name] NOT NULL, [ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_UnitMeasure_ModifiedDate] DEFAULT (getdate())...
DELIMITER $$ -- -- Procedures -- DROP PROCEDURE IF EXISTS getContent $$ CREATE PROCEDURE `getContent` (IN `_language` VARCHAR(2)) BEGIN SELECT id, name, value, language, state FROM content WHERE language = _language AND state = 'Active' ORDER BY name; END$$ DROP PROCEDURE IF EXISTS getAllContent $$ CREATE P...
<filename>resources/test_data.sql -- MySQL dump 10.15 Distrib 10.0.17-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: test_data -- ------------------------------------------------------ -- Server version 10.0.17-MariaDB-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET ...
<reponame>nofxx/geonames_local -- -- PostgreSQL database dump -- -- Started on 2010-03-19 05:44:38 BRT 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...
<filename>creation of a huge SQL database/3 contraintes-cles-etrangeres.sql USE ZARA; ALTER TABLE products2 ADD FOREIGN KEY fk_categories_products(category_id) REFERENCES categories2 (category_id) -- ON DELETE CASCADE ON UPDATE CASCADE ; ALTER TABLE products2 ADD FOREIGN KEY fk_brands_products(brand_id) REFERENCES bra...
<gh_stars>1-10 CREATE TABLE Terms ( TermCode VARCHAR(6) NOT NULL PRIMARY KEY, BannerStartWindow DATE NULL, BannerEndWindow DATE NULL );
-- where2.test -- -- execsql { -- SELECT * FROM t1 WHERE x IN (20,21) AND y IN (1,2) -- } SELECT * FROM t1 WHERE x IN (20,21) AND y IN (1,2)
<filename>Deployment/Code/SQLScripts/09_InsertIntoVaccinationsUnpvtTable.sql -- SQL script to create new vaccination unpivoted table from unpivoting the vaccination table CREATE TABLE dbo.VaccinationUnpvt (id varchar(255),UserEmail varchar(255), UserID int, LastName varchar(255), FirstName varchar(255), MiddleInit...
/******************************************************************************** release-type-FULL-validation-Inferred-Relationship Assertion: The current Inferred Relationship full file contains all previously published data unchanged. The current full file is the same as the prior version of the same full fil...
----------------------------------- Mapping number 1 ---------------------------------------------- 41 initial source relations =relation_10..relation_12..relation_14..relation_16..relation_18..relation_19..relation_2..relation_22..relation_24..relation_26..relation_28..relation_30..relation_31..relation_34..relation...
<gh_stars>0 -- @testpoint:opengauss关键字called(非保留),作为函数名 --关键字不带引号-成功 drop function if exists called; create function called(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --清理环境 drop function called; --关键字带双引号-成功 drop function if exists "called"; create function "called"(i integer)...
IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'subjectAdd') BEGIN DROP Procedure subjectAdd END GO CREATE PROCEDURE [dbo].subjectAdd( @uuid VARCHAR(50), @firstName VARCHAR(100), @middleName VARCHAR(50), @lastName VARCHAR(100), @dob DATE, @sirutaId INT, @notes VARCHAR(MAX) = ''...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 22, 2018 at 03:07 PM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
<filename>dbv-4/data/schema/prc_getHourlyReport.sql CREATE DEFINER=`neon-user`@`localhost` PROCEDURE `prc_getHourlyReport`( IN `p_CompanyID` INT, IN `p_UserID` INT, IN `p_isAdmin` INT, IN `p_AccountID` INT, IN `p_ResellerID` INT, IN `p_StartDate` DATETIME, IN `p_EndDate` DATETIME, IN `p_CDRType` VARCHAR(50) ) B...
/* List all possible combinations of Customer names and Product names that can be ordered from specific customer List all Business Entities that has any order List all Entities without orders List all Customers without orders (using Right Join) */ select c.Name AS CustomerName, p.Name as ProductName, p.Price from db...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 26, 2017 at 04:22 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
DROP TABLE IF EXISTS fish;
<filename>db.sql/table_bruce_30_08_2021.sql -- -------------------------------------------------------- -- Hôte : 127.0.0.1 -- Version du serveur: 10.1.13-MariaDB - mariadb.org binary distribution -- SE du serveur: Win32 -- HeidiSQL Version: 10.3.0.5771 -- ---...
CREATE TABLE IF NOT EXISTS guilds ( id VARCHAR(20) NOT NULL UNIQUE PRIMARY KEY, prefix TEXT DEFAULT 'p!', pollMasterRole TEXT DEFAULT NULL, creationPermissions INT DEFAULT 0 ) -- creationPermissions: -- 0: only people with admin permissions/ pollMasterRole can create polls -- 1: only people with person...
<filename>assets/imunisasi.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 15, 2020 at 08:40 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SE...
<reponame>qoohj1/lhauction2<filename>docs/db/curio_catagory.sql /* Navicat Premium Data Transfer Source Server : local Source Server Type : MySQL Source Server Version : 50720 Source Host : localhost Source Database : curio Target Server Type : MySQL Target Server Version : 50720...
<filename>mytrip/database/austpro.sql -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 22, 2018 at 07:03 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 @O...
ALTER TABLE telegram_subscriptions ADD COLUMN template TEXT;
-- 2017-12-06T17:19:20.236 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,544598,0,TO_TIMESTAMP('2017-12-06 17:19:20','YYYY-MM-DD HH24:MI:SS'),100,'de....
<gh_stars>10-100 CREATE USER DEMO_HR IDENTIFIED BY DEMO_HR; GRANT UNLIMITED TABLESPACE TO DEMO_HR; -- DEMO_HR.JOBS definition CREATE TABLE "DEMO_HR"."JOBS" ("JOB_ID" VARCHAR2(10), "JOB_TITLE" VARCHAR2(35) CONSTRAINT "JOB_TITLE_NN" NOT NULL ENABLE, "MIN_SALARY" NUMBER(6,0), "MAX_SALARY" NUMBER(...
-- 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. PRINT N'Creating primary key [InstitutionTelephone...
<filename>MyArt.Database/Tables/UserDefinables/Join_User_Painting.sql CREATE TABLE [dbo].[JOIN_USER_PAINTING] ( [UserId] UNIQUEIDENTIFIER NOT NULL, [PaintingId] UNIQUEIDENTIFIER NOT NULL )