sql
stringlengths
6
1.05M
<gh_stars>0 DROP TABLE IF EXISTS FRAUD_AMOUNTS_METRIC; CREATE TABLE FRAUD_AMOUNTS_METRIC AS with t_b as (with t_a as (select distinct ti.device_type, ti.device_info, t.transaction_dt/86400 as day, round(cast(sum(t.transaction_amt) as numeric),2) as Desktop_Fraud_Amou...
--If group_on_practice is 0, two records from different practices are combined. --Test 25 ---------------------------------------------------------------------------------------------------------------------------------------------- /*The idea is create a customized table where there are all the alf_e but not the on...
library Rule version '0.1.0' using FHIR version '3.0.0' include FHIRHelpers version '3.0.0' called FHIRHelpers parameter Patient Patient parameter device_request DeviceRequest parameter practitioner_location Location define "Age": AgeInYears() define RULE_APPLIES: "Age" >= 10 and "Age" <= 70 define RESULT_Summa...
<reponame>ommudotco/ECC-HPTT-Website /* SQLyog Ultimate v11.5 (64 bit) MySQL - 5.6.24 ********************************************************************* */ /*!40101 SET NAMES utf8 */; insert into `ommu_core_plugin_menu` (`menu_id`, `module`, `parent`, `enabled`, `orders`, `name`, `icon`, `url`, `dialog`, `attr`, `...
<filename>conf/evolutions/default/1.sql # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table aluno ( id integer auto_increment not null, nome varchar(255), cpf ...
<reponame>JaneliaSciComp/DatabaseScripts SELECT "ID", "Project","Department name","Department code","Owner","Close date","Usage Date","Wallclock","Units","Rate","Cost","Account" UNION SELECT id ,IF(STRCMP(project,'NONE'),project,'') as "Project" ,name as "Department name" ,lpad(code,6,'0') as "D...
-- TAB-4216 alter table StudentCourseYearDetails add ( ROUTECODE NVARCHAR2(20) );
<filename>Database Basics MS SQL/08. Exam Preparations/1. Databases MSSQL Server Exam - 24 April 2017/ExamPreparation1/16. Missing Parts.sql SELECT p.PartId, p.[Description], SUM(pn.Quantity) AS [Required], SUM(p.StockQty) AS [In Stock], ISNULL(SUM(op.Quantity), 0) AS Ordered FR...
<reponame>smendez92/burger<gh_stars>0 USE burgers_db; INSERT INTO burgers (burger_name) VALUES('Cauliflower is Cumin From Inside the House Burger'); INSERT INTO burgers (burger_name) VALUES('The Silentil Night Burger'); INSERT INTO burgers (burger_name) VALUES('Poutine on the Ritz Burger'); INSERT INTO burgers (burger_...
DELETE FROM dtadmin.login_attempts WHERE user_id = 1;
<gh_stars>0 CREATE TABLE `xplugin_jtl_paypal_additional_payment` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `paymentId` INT NOT NULL, `sort` INT NOT NULL );
<reponame>IyanSanjaya12/PUB_project -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 23, 2019 at 11:21 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time...
DROP TABLE IF EXISTS pollVote; DROP TABLE IF EXISTS pollChoice; DROP TABLE IF EXISTS meetingAttendees; DROP TABLE IF EXISTS meeting; DROP TABLE IF EXISTS rawUsers; DROP TABLE IF EXISTS users; CREATE TABLE users ( id VARCHAR(255), displayName VARCHAR (255), email VARCHAR (255), created_at int(11), t...
<reponame>severvam/java-graal-presentation CREATE DATABASE quarkus DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci; CREATE USER 'quarkus'@'%' IDENTIFIED BY 'secret'; GRANT ALL PRIVILEGES ON quarkus.* TO 'quarkus'@'%';
ALTER TABLE visa ADD status VARCHAR(200); ALTER TABLE visa ADD reason VARCHAR(2000); UPDATE visa SET status = 'ISSUED';
<gh_stars>0 USE Northwind GO SELECT CompanyName ,dbo.Promocion(Customerid) AS Promo FROM Customers
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2019 at 05:54 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
--ZAD4 SELECT klienci.nazwa as "nazwa klienta", (case WHEN COUNT(DISTINCT adres_dostawy)>=2 THEN 'TAK' ELSE 'NIE' END) as "rozne adresy" FROM klienci JOIN zamowienia USING (id_klienta) GROUP BY id_klienta ORDER BY 1,2 ----
--SQL Query that will return all view names SELECT * FROM sys.views --Sample Output:name object_id principal_id schema_id parent_object_id type type_desc create_date --modify_date is_ms_shipped is_published is_schema_published is_replicated has_replication_filter has_opaque_metadata --has_unchecked_assemb...
<reponame>iicoom/Note<gh_stars>1-10 /* Navicat MySQL Data Transfer Source Server : doraemon-s Source Server Version : 50551 Source Host : mxj-s.doraemonkart.com:3306 Source Database : db_dk_user Target Server Type : MYSQL Target Server Version : 50551 File Encoding : 65001...
-- View the table data SELECT * FROM states; -- Use a query to view only the state name SELECT state_name FROM states; -- Bonus 1: -- Create a query to view only state abbreviations SELECT state_abbreviation FROM states; -- Bonus 2: -- Create a query to view states -- with a population greater than 5,000,000 SELECT ...
<reponame>guyhay/WTT-Demo-Hol Declare @CustomerId Numeric = 1 Declare @ConcertId Nvarchar(8) = '69' Declare @TicketLevelId Nvarchar(8) = '275' Declare @MinutesToRunFor numeric = 1 Declare @MaximumTicketsToPurchase numeric = 60 Declare @NumberOfDelaysBetweenPurchases numeric = 6 Declare @DeleteExisting bit = false...
-- This query extracts the diagnosis string for bleeding from the table diagnosis. SELECT DISTINCT patientUnitStayID FROM `physionet-data.eicu_crd.diagnosis` WHERE (LOWER(diagnosisString) LIKE '%hemorrhage%') OR (LOWER(diagnosisString) LIKE '%blood loss%') OR (LOWER(diagnosisString) LIKE '%bleed%' AND NOT...
USE [VipunenTK_SA] GO /****** Object: View [dbo].[v_sa_2_9_Korkeakoulut_tutkinnot] Script Date: 4.4.2019 18:09:00 ******/ DROP VIEW IF EXISTS [dbo].[v_sa_2_9_Korkeakoulut_tutkinnot] GO /****** Object: View [dbo].[v_sa_2_8e_Korkeakoulut_opiskelijat] Script Date: 4.4.2019 18:09:00 ******/ DROP VIEW IF EXISTS [dbo...
create table if not exists chats ( chat_id int not null constraint chats_pk primary key, access_hash integer, username text, title text, chat_type text not null, broadcast boolean, megagroup boolean ); create unique index if not exists chats_chat_id_uindex on ch...
-- vacuum.test -- -- execsql { -- -- The "SELECT * FROM sqlite_master" statement ensures that this test -- -- works when shared-cache is enabled. If shared-cache is enabled, then -- -- db3 shares a cache with db2 (but not db - it was opened as -- -- "./test.db"). -- SELECT * FROM sqlite_master; --...
<gh_stars>10-100 -- file:transactions.sql ln:108 expect:true CREATE TABLE bar (a int)
<filename>src/test/resources/sql/insert/bf2bc443.sql -- file:foreign_key.sql ln:131 expect:true INSERT INTO FKTABLE VALUES (3, 6, 12)
create index if not exists transactions_tx_name_salt_idx on transactions((tx->>'name_salt'));
<gh_stars>0 set `planner.slice_target`=1; select age, count(*) from `json/empty` group by age; reset `planner.slice_target`;
<gh_stars>0 COMMENT ON COLUMN LBUSER.authors.id IS 'A Test Column Remark'
<reponame>sumbad/inscriptum ALTER TABLE "public"."page" DROP CONSTRAINT "page_draft_id_order_ended_at_key"; ALTER TABLE "public"."page" DROP COLUMN "order"; ALTER TABLE "public"."note" ADD COLUMN "title" text; ALTER TABLE "public"."note" ALTER COLUMN "title" DROP NOT NULL; ALTER TABLE "public"."note" ADD ...
drop sequence if exists value_mapping_seq; create sequence value_mapping_seq; SELECT setval('value_mapping_seq', (SELECT MAX(id) FROM value_mapping_template));
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 22, 2019 at 02:53 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
<gh_stars>10-100 CREATE TABLE average_gas_price_by_year AS (SELECT extract(YEAR from CAST(Date AS date)) AS Year, avg(Price) AS Price FROM natural_gas_prices GROUP BY extract(YEAR from CAST(Date AS date)) )
IF (NOT EXISTS(SELECT 1 from sys.schemas WHERE name = 'SharePoint')) BEGIN PRINT '+Creating schema [SharePoint]'; EXEC ('CREATE SCHEMA [SharePoint] AUTHORIZATION [dbo]'); END GO PRINT '============================================' PRINT ' SharePoint List ' PRINT '============================...
/** * The table for the each user's answers to each question * @author zmb6893 */ CREATE TABLE User_Answers ( Answers_ID primary serial, /* Primary key */ User_ID foreign key int, /* Foreign key */ Q1, Q2, Q3, Q4, Q5, Q6, Q7 );
<filename>db/goose/20190916093239_replace_integer.sql<gh_stars>0 -- +goose Up -- SQL in this section is executed when the migration is applied. ALTER TABLE webhook_events ALTER COLUMN event_time TYPE bigint; ALTER TABLE webhook_events ALTER COLUMN object_id TYPE bigint; ALTER TABLE webhook_events ALTER COLUMN subscript...
<filename>queries/query2.sql .headers on .mode column .nullvalue NULL DROP VIEW IF EXISTS pathology_occurences; CREATE VIEW pathology_occurences AS SELECT citizen_has_pathology.pathology_id, COUNT(*) AS occurences FROM citizen_has_pathology GROUP BY citizen_has_pathology.pathology_id ORDER BY occurences; SELECT p...
/* IF EXISTS (SELECT name FROM sysobjects WHERE (name = 'WorkQueueMonitorAgingByWorkQueue' AND type = 'P')) DROP PROCEDURE dbo.[WorkQueueMonitorAgingByWorkQueue] GO */ CREATE PROCEDURE dbo.[WorkQueueMonitorAgingByWorkQueue] /* STORED PROCEDURE - INPUTS (BEGIN) */ @workQueueId AS BIGINT /* STO...
set statement max_statement_time = 90 for SELECT date(min(`time`)) as `date`, date_format(min(`time`), '%H') as `hour`, cast(substring_index(group_concat(`temp` ORDER BY `flag` asc), ',', 1) as decimal(3, 1)) as `temp`, cast(substring_index(group_concat(`dwpt` ORDER BY `flag` asc), ',', 1) as decim...
-- Your SQL goes here CREATE TABLE users ( username VARCHAR PRIMARY KEY NOT NULL, display_name VARCHAR NOT NULL, hashed_password VARCHAR NOT NULL, role VARCHAR NOT NULL );
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 22 Des 2018 pada 01.48 -- Versi Server: 10.1.30-MariaDB -- PHP Version: 5.6.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
-- -- Host: localhost Database: siera_final -- ------------------------------------------------------ -- Server version 5.1.73-0ubuntu0.10.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION...
INSERT INTO CLIENTE (nomecliente, cpf, ticketid) values ('Antonio', 451, 94); INSERT INTO CLIENTE (nomecliente, cpf, ticketid) values ('Mateus', 876, 97); INSERT INTO CLIENTE (nomecliente, cpf, ticketid) values ('Branquinho', 879, 98);
<reponame>eoctavio0805/sas-doc CREATE VIEW vw_notificaciones AS SELECT documentos.id ,documentos.numero_documento ,documentos.id_remitente ,documentos.id_destinatario ,documentos.id_asignado_a ,SUBSTRING(documentos.asunto, 1, 50) as asunto ,documentos.fecha_emision ,documentos.vigencia ,documentos.id_estatus ,DATEDI...
<filename>sql/table_eth.block_transactions.sql<gh_stars>0 CREATE OR REPLACE TABLE "STAGE"."ETH"."BLOCK_TRANSACTIONS" ( "ACCESSLIST" FLOAT , "BLOCKHASH" VARCHAR(66) , "BLOCKNUMBER" INTEGER , "CHAINID" VARCHAR(3) , "FROM" VARCHAR(42) , "GAS" INTEGER , "GASPRICE" INTEGER , "HASH" VARCHAR(66...
<gh_stars>0 delete from rss_read where item_last_modified < date('now', 'localtime', '-4 days');
<gh_stars>1-10 SET DEFINE OFF; CREATE UNIQUE INDEX AFW_30_CARNT_PRODT_PK ON AFW_30_CARNT_APLIC (SEQNC) LOGGING /
<reponame>getwasim/egov-smartcity-suites-test INSERT INTO eg_roleaction(roleid, actionid) VALUES ((select id from eg_role where name = 'Sewerage Tax Approver'), (select id from eg_action where name = 'AjaxDesignationsByDepartment' and contextroot = 'eis')); INSERT INTO eg_roleaction(roleid, actionid) VALUES ((select ...
<reponame>honyrikS/core-backend --liquibase formatted sql --changeset artemov_i:ATShowDAction.sql dbms:postgresql runOnChange:true splitStatements:false stripComments:false INSERT INTO s_mt.t_query (ck_id, cc_query, ck_provider, ck_user, ct_change, cr_type, cr_access, cn_action, cv_description) VALUES ('ATShowDAction',...
<filename>app/sql/ArkAdmin_user_group.sql<gh_stars>1-10 create table `ArkAdmin_user_group` (`id` int unsigned zerofill auto_increment primary key, `name` text null, `editform` int null, `time` bigint null, `permissions` longtext null, `canadd` longtext null); INSERT INTO `ArkAdmin_user_group` (`id`, `name`, `editform`,...
DROP TABLE IF EXISTS `demos`; CREATE TABLE `demos` ( `id` BIGINT NOT NULL AUTO_INCREMENT, `name` VARCHAR(255), `description` VARCHAR(255), `create_time` DATETIME, PRIMARY KEY (`id`) ) character set = utf8;
CREATE PROCEDURE [dbo].[spItem_Get] @Id UNIQUEIDENTIFIER AS begin select * from dbo.[TodoItems] where Id = @Id; end
<gh_stars>1-10 CREATE EXTERNAL TABLE IF NOT EXISTS `packt_serverless_analytics`.`chapter_13_udf_sample_data` ( YEAR STRING, MONTH STRING, DAY STRING, ACCOUNT_ID STRING, AMT BIGINT, SOME_BOOLEAN BOOLEAN, ENCRYPTED_PAYLOAD STRING ) ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde' LOCATION 's3:/...
<reponame>SinKasula/Beyond-LeetCode-SQL<gh_stars>100-1000 DROP SCHEMA IF EXISTS Advertiser; CREATE SCHEMA Advertiser; USE Advertiser; DROP TABLE IF EXISTS `Advertiser`; CREATE TABLE `Advertiser` ( `id` int(11) NOT NULL, `user_id` varchar(10) NOT NULL, `status` enum('CHURN','NEW','EXISTING','RESURRECT') NOT NULL...
DROP DATABASE IF EXISTS company_db; CREATE DATABASE company_db; USE company_db; DROP TABLE IF EXISTS departments; DROP TABLE IF EXISTS roles; DROP TABLE IF EXISTS employees; CREATE TABLE departments ( id INTEGER AUTO_INCREMENT PRIMARY KEY NOT NULL, dept_name VARCHAR(30) NOT NULL ); CREATE TABLE roles ( i...
<gh_stars>1-10 -- import all CSV files into separate tables .echo on .mode csv .read import_csv.sql .tables .once sources.sql .dump
DELIMITER DLM00 DROP PROCEDURE IF EXISTS upgrade87 DLM00 CREATE PROCEDURE upgrade87() BEGIN IF EXISTS(SELECT * FROM information_schema.`COLUMNS` WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'files_file' AND COLUMN_NAME = 'content_type') THEN ALTER TABLE `files_file` DROP COLUMN `content_type`; END IF; IF NO...
<gh_stars>0 -- Data model to support content repository of the ArsDigita -- Community System -- Copyright (C) 1999-2000 ArsDigita Corporation -- Author: <NAME> (<EMAIL>) -- This is free software distributed under the terms of the GNU Public -- License. Full text of the license is available from the GNU Project: -- h...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : MySQL5.6 Source Server Type : MySQL Source Server Version : 50640 Source Host : localhost:3306 Source Schema : db0 Target Server Type : MySQL Target Server Version : 50640 File Encoding : 65001 Date: 16/06/...
explain plan for select * from ( select sum(cast(o.c_integer as bigint)), sum(cast(r.c_integer as bigint)), sum(cast(o.c_bigint as bigint)), sum(cast(r.c_bigint as bigint)), sum(cast(o.c_float as bigint)), sum(cast(r.c_float as bigint)), sum(cast(o.c_double as ...
CREATE DATABASE Students USE Students CREATE TABLE StudentsInfo( tudentID int, StudentName varchar(8000), ParentName varchar(8000), PhoneNumber bigint, AddressofStudent varchar(8000), City varchar(8000), Country varchar(8000) )
SET FOREIGN_KEY_CHECKS=0; INSERT INTO `s_benchmark_config` (`id`, `shop_id`, `active`, `last_sent`, `last_received`, `last_order_id`, `last_customer_id`, `last_product_id`, `batch_size`, `industry`, `type`, `response_token`, `cached_template`) VALUES (UNHEX('F00'), '2', '1', '1990-01-01 00:00:00', '1990-01-01 00:00:00...
<reponame>gru/debezium-examples<filename>tutorial/debezium-sqlserver-init/destination.sql -- Create the test database CREATE DATABASE testDB; GO USE testDB; -- Create and populate our products using a single insert with many rows CREATE TABLE products ( id INTEGER NOT NULL PRIMARY KEY, name VARCHAR(255) NOT NULL, ...
<reponame>josephrohrer/abq-move-safe<filename>sql/haversine.sql -- @author <NAME> -- @see https://github.com/dylan-mcdonald/data-design/blob/master/sql/haversine.sql#L35 -- drop the procedure if already defined DROP FUNCTION IF EXISTS haversine; -- procedure to calculate the distance between two points -- @param POIN...
<filename>Cheburashka/Tests/TestScripts/EnforceExplicitInsertColumnListRule/ProcWithExplicitInsertColumnSelectListFromDMLWithoutColumnList.sql<gh_stars>1-10 create proc ProcWithExplicitInsertColumnSelectListFromDMLWithoutColumnList as begin insert into Table1 (a,b) select a,b from ( insert into Table1 output inserte...
-- begin DDCDL_LOCALIZATION create index IDX_DDCDL_LOCALIZATION on DDCDL_LOCALIZATION (KEY_, LOCALE) ^ -- end DDCDL_LOCALIZATION
<filename>astroll_install_package/ITA/ita-sqlscripts/en_US_oracle_ita_model-l2.sql -- ***************************************************************************** -- *** ***** CreateParameterMenu Tables *** -- ************************************************************************...
-- database: presto; groups: join; tables: nation, region select n_name from nation where n_nationkey in (select r_regionkey from region)
<filename>src/main/resources/sql/data.sql INSERT INTO profiles(id, user_id, callsign, bio, location, created_at, updated_at) VALUES(0, 0, 'Test', NULL, NULL, '2013-02-15 12:03:43.0', '2013-02-15 12:03:43.0'); INSERT INTO profiles(id, user_id, callsign, bio, location, created_at, updated_at) VALUES(2, 2, 'Player1'...
<reponame>aasmpro/behdar SELECT id, flname, ncode, creator, insurance, date FROM prescription WHERE (id = @org_id)
<filename>scripts/dnd database.sql drop table character_spells; drop table class_spells; drop table spells; drop table class; drop table schools; drop table character_weapons; drop table weapon_properties; drop table properties; drop table weapons; drop table character_equipment; drop table equipment; drop table profic...
create table o_bbb_template ( id number(20) generated always as identity, creationdate timestamp not null, lastmodified timestamp not null, b_name varchar(128) not null, b_description varchar(2000) default null, b_system number default 0 not null, b_enabled number default 1 not null, b_external_...
-- Drop table -- DROP TABLE public.shp_salesorder; CREATE TABLE public.shp_salesorder ( salesorder_id varchar(50) NOT NULL, plant_code varchar(100) NOT NULL, customer_shipto varchar(100) NOT NULL, customer_soldto varchar(100) NOT NULL, salesorder_type varchar(255) NOT NULL, customer_po varchar(255) NOT NULL, c...
CREATE TABLE UserProfile ( username varchar(1024), email varchar(1024), name varchar(1024), affiliation varchar(1024), acm_number varchar(1024), level varchar(12), PRIMARY KEY (username) ); CREATE TABLE UserPCConflict ( username varchar(1024), pc varchar(1024), KEY username (use...
-- Functions and Procedures -- 1. DROP FUNCTION IF EXISTS manager_name; DELIMITER // CREATE FUNCTION manager_name(e_id INT) RETURNS VARCHAR(40) BEGIN DECLARE manager_name VARCHAR(40); SELECT CONCAT(e2.first_name, ' ', e2.last_name) INTO manager_name FROM employees e1 JOIN employees e2 WHERE e1.manager_id = e2.employ...
<filename>uas-pemerograman-mobile.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 06, 2021 at 07:49 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; ...
CREATE OR REPLACE VIEW eval_comment_stats_summary AS SELECT total.period_id as period_id, total.cycle as cycle, total.total as total, COALESCE(comments.total, 0) as comments FROM ( SELECT period_id, cycle, COUNT(*) as total FROM eval_comment_stats GROUP BY cycle, period_id ) as total LEFT JOIN...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 24, 2020 at 06:25 AM -- 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>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 21 Mar 2019 pada 05.55 -- Versi Server: 10.1.28-MariaDB -- PHP Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
SELECT UNITSETL.* FROM LG_$FIRM$_UNITSETL UNITSETL $WHERE$ $ORDER$
<reponame>jhsveli/finn-kandidat-api CREATE TABLE permittert ( id SERIAL PRIMARY KEY, aktor_id VARCHAR(20), opprettet TIMESTAMP(6) NOT NULL DEFAULT current_timestamp, slettet BOOLEAN, status_fra_veilarb VARCHAR(100), tidspunkt_for_status_fra_veilarb TIMESTAMP(6) );
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.1.41 : Database - oroapi ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=...
-- MySQL dump 10.13 Distrib 5.6.35, for osx10.9 (x86_64) -- -- Host: localhost Database: laraclassified -- ------------------------------------------------------ -- Server version 5.6.35 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
<filename>application/drop_production.sql rem Tapir 1.0.0 define g_tapir_production_schema = "TAPIR_010000" rem Tapir Development Schema prompt drop &&g_tapir_production_schema user drop user &&g_tapir_production_schema cascade;
<filename>tools/sql/util__update_ranks_in_user_words.sql SET SQL_SAFE_UPDATES=0; update user_word t1 inner JOIN ( select uw.id user_word_id, wr.id ranked_word_id, uw.language_id from user_word uw join ranked_word wr on lower(uw.word) = lower(wr.word) and uw.language_id = wr.language_id ) t2 on t1.id = t2....
CREATE USER fresco WITH PASSWORD '<PASSWORD>'; CREATE DATABASE classification OWNER fresco; psql -U fresco -d classification -a -f cats.sql
<filename>course_project/Diaspora_DB_dump.sql -- MySQL dump 10.13 Distrib 8.0.22, for Linux (x86_64) -- -- Host: localhost Database: diaspora_production -- ------------------------------------------------------ -- Server version 8.0.25-0ubuntu0.20.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
<reponame>plerohellec/fathom -- +migrate Up ALTER TABLE pageviews ADD COLUMN is_finished BOOLEAN NOT NULL DEFAULT FALSE; -- +migrate Down ALTER TABLE pageviews DROP COLUMN is_finished;
<filename>addition/734_creature_onkill_reputation_mangos.sql -- Data from Grandres, thx him. -- Support for Championing system DELETE FROM creature_onkill_reputation WHERE creature_id IN (30532,30529,30510,30540,30459,30457,30460,30478, 30485,30473,30516,30517,30519,30520,30521,30526, 30524,30528,30398,30397,30496,30...
<gh_stars>0 create table cdb_user_profile ( user_id varchar(36) not null primary key, full_name varchar(100) not null, gender varchar(6) not null, year_of_enrollment varchar(4) not null, faculty varchar(100) not null, study_class varchar(100) not nu...
CREATE TABLE [dbo].[AuditLog] ( [GUID] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY, [OperationType] NVARCHAR(50) NULL, [PrimaryObjectName] NVARCHAR(50) NOT NULL, [PrimaryObjectGUID] UNIQUEIDENTIFIER NOT NULL, [SecondaryObjectName] NVARCHAR(50) NULL, [SecondaryObjectGUID] UNIQUEIDENTIFIER NULL, ...
<filename>sql.sql CREATE TABLE if not exists debug_tattle ( id INTEGER PRIMARY KEY AUTOINCREMENT, shortmsg VARCHAR, longmsg text, backtrace text, post text , get text , request text , session text, files text, server text, thedate datetime NOT NULL,...
drop table t1; drop table t2; drop table t3; -- Creati un view, denumit angajati_prima, care contine, pentru fiecare angajat: -- numele “Nume”, -- luna in care s-au angajat “Luna_ang” -- si prima. -- Prima este acordata angajatilor din -- departamentul care are cei mai multi sefi, -- dupa urmatoarele criterii: -- ...
use mysql; -- 创建数据库 CREATE DATABASE easyboot; -- 创建用户 create user 'easyboot'@'%' identified by 'Zmzhou.V587'; -- 授权 grant select,insert,update,delete,create,drop on `easyboot`.* to 'easyboot'@'%'; -- 或者赋所有权限 grant all privileges on `easyboot`.* to 'easyboot'@'%'; -- 查看一下用户列表 select host,user,authentication_string from ...
<gh_stars>1000+ -- +migrate Up ALTER TABLE workflow_node_run ADD COLUMN vcs_repository text; ALTER TABLE workflow_node_run ADD COLUMN vcs_hash text; ALTER TABLE workflow_node_run ADD COLUMN vcs_branch text; -- +migrate Down ALTER TABLE workflow_node_run DROP COLUMN vcs_repository; ALTER TABLE workflow_node_run DROP COL...
SELECT count(*) FROM [Staging_Task] WHERE [TaskTime] < DATEADD(hour, -24, GETDATE())
<gh_stars>0 CREATE TABLE [dbo].[CaseSheetProducts] ( [Id] INT IDENTITY(1,1) NOT NULL, [CaseSheetId] INT NOT NULL, [ProductId] INT NOT NULL, [ProductSku] VARCHAR(20) NOT NULL, [ProductDescription] VARCHAR(500) NOT NULL, [Quantity] INT NOT NULL, [VendorPrice] MONEY NOT NULL, [SellingPrice] MONEY NOT NULL, CONST...
<filename>INFO/Books Codes/Oracle PLSQL Tips and Techniques/OutputChapter10/10_8.sql -- *************************************************************************** -- File: 10_8.sql -- -- Developed By TUSC -- -- Disclaimer: Neither Osborne/McGraw-Hill, TUSC, nor the author warrant -- that this source code i...