sql
stringlengths
6
1.05M
SELECT CASE WHEN S.Grade > 7 THEN S.name ELSE NULL END AS "Name", S.Grade, S.Marks FROM ( SELECT Name, Marks, CASE WHEN Marks BETWEEN 0 AND 9 THEN 1 WHEN Marks BETWEEN 10 AND 19 THEN 2 WHEN Marks BETWEEN 20 AND 29 THEN 3 WHEN Marks BETWEEN 30 AND 39 THEN 4 WHEN Marks BETWEEN 40...
/* log_query_timing_p.sql ** ** Return a transformed subset of the sys.log_query columns with an optional argument ** for predicate to push down into the dynamically generated query. ** ** . Use care in using and granting permissions on this procedure as it is potentially ** subject to malicious SQL attacks. ** . This...
DROP DATABASE IF EXISTS employee_DB; CREATE database employee_DB; USE employee_DB; CREATE TABLE department ( id INT AUTO_INCREMENT, name VARCHAR(30) NULL, PRIMARY KEY (id) ); CREATE TABLE role ( id INT AUTO_INCREMENT, title VARCHAR(30) NULL, salary DECIMAL(10,2) NULL, department_id INT, FOREIGN KEY (de...
<filename>users.sql -- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: May 24, 2017 at 03:25 AM -- Server version: 10.1.23-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 23, 2018 at 02:00 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...
<gh_stars>0 create table books ( id serial not null constraint books_pkey primary key, isbn varchar not null, isbn_num bigint, title varchar not null, author varchar not null, published_year integer not nul...
-- \set ECHO queries /* ###################################################################################################### */ \ir './_trm.sql' -- \ir './set-signal-color.sql' -- \ir './test-begin.sql' \pset pager off \timing off -- ---------------------------------------------------------------------------------...
<reponame>zcqiand/Barasingha-WebApi<gh_stars>0 --按条件获取作品分卷列表 IF EXISTS (SELECT * FROM sysobjects WHERE name = 'Segment_Query' AND schema_name(uid) = 'dbo') DROP PROCEDURE dbo.Segment_Query; GO CREATE PROCEDURE dbo.Segment_Query @PageIndex int, @PageSize int, @Total int output WITH ENCRYPTION AS SELE...
SET DEFINE OFF; create or replace package afw_01_elemn_confg_en_pkg is kva_prefx_elemn_subst_mesg constant varchar2 (30) default '[#'; kva_sufx_elemn_subst_mesg constant varchar2 (30) default '#]'; procedure inser_elemn_confg_en (pnu_confg_evenm_notfb in vd_i_afw_01_elemn_confg_en.ref_confg_evenm_notfb%ty...
<gh_stars>1-10 use nideshop; delete from nideshop_ad; delete from nideshop_ad_position; delete from nideshop_address; delete from nideshop_admin; delete from nideshop_attribute; delete from nideshop_attribute_category; delete from nideshop_brand; delete from nideshop_cart; delete from nideshop_category; delete from ni...
<gh_stars>1-10 SELECT * FROM DARWIN_LOCK;
CREATE TABLE addressbooks ( id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, principaluri VARCHAR(255), displayname VARCHAR(255), uri VARCHAR(200), description TEXT, ctag INT(11) UNSIGNED NOT NULL DEFAULT '1', UNIQUE(principaluri, uri) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf...
USE [HappyScoopers_DW] GO --Drop the table, to make sure you create it from scratch DROP TABLE IF EXISTS [dbo].[Staging_Sales] GO -- Create the staging table CREATE TABLE [dbo].[Staging_Sales]( [Staging Sale Key] [bigint] IDENTITY(1,1) NOT NULL, [Customer Key] [int] NULL, [Employee Key] [int] NULL, [Product Key] ...
<reponame>Shuttl-Tech/antlr_psql -- file:rowsecurity.sql ln:1239 expect:true GRANT ALL ON copy_rel_to TO regress_rls_bob, regress_rls_exempt_user
<reponame>Paimon-food/hacktoberfest2021 -- Write a query that prints a list of employee names (i.e.: the name attribute) from the Employee table in alphabetical order. SELECT NAME FROM EMPLOYEE ORDER BY NAME ;
<filename>lab/mod07/docker-labs-02/lab04/Demo3/webapp/src/sql/tablespace.sql<gh_stars>1-10 SELECT TOP(10) SCH.name as schema_name, concat(TABL.name,':', INDX.name) AS table_name, --INDX.name AS index_name, SUM(PART.rows) AS row_count, (SUM(ALOC.used_pages)*8/1024) AS used_space_MB, (SUM(ALOC.total_pages)*8/1024) AS ...
<gh_stars>1-10 ---------------------------------- -- grant for HHS_HR_RW_ROLE ---------------------------------- GRANT EXECUTE ON HHS_HR.SP_UPDATE_INTG_DATA TO HHS_HR_RW_ROLE; GRANT EXECUTE ON HHS_HR.SP_UPDATE_ANNOUNCEMENT_TABLE TO HHS_HR_RW_ROLE; GRANT EXECUTE ON HHS_HR.SP_UPDATE_APPLICATION_TABLE TO HHS_HR_RW_ROLE;...
<gh_stars>0 INSERT INTO `o2o_city`(`id`,`name`)VALUES('1','北京'); INSERT INTO `o2o_city`(`id`,`name`,`parent_id`)VALUES('1101','东城区','1'); INSERT INTO `o2o_city`(`id`,`name`,`parent_id`)VALUES('1102','西城区','1'); INSERT INTO `o2o_city`(`id`,`name`,`parent_id`)VALUES('1103','宣武区','1'); INSERT INTO `o2o_city`(`id`,...
## 获取用户所有的礼包数量 #macro($ymCountGift(userId,code)) SELECT count(*) FROM exam_activity_001_user_q WHERE user_id=:userId and activity_code =:code #end ## 获取用户所有的礼包 #macro($ymGetGifts(userId,code)) SELECT * FROM exam_activity_001_user_q WHERE user_id=:userId and activity_code =:code #end ## 获取用户当天的礼包 #macro($ymTodayGift(u...
<gh_stars>1-10 /* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.6.22-log : Database - homw_schedule ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SE...
<reponame>StyxProject/external_perfetto<filename>src/trace_processor/metrics/android/android_batt.sql<gh_stars>1-10 -- -- Copyright 2019 The Android Open Source Project -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may ob...
-- this is a comment select count(*) rowcount, license from projects where id=:#lowId or id=2 or id=3 group by license
-- Deploy cascade_stage_runs_change_id_fkey BEGIN; ALTER TABLE stage_runs DROP CONSTRAINT IF EXISTS stage_runs_change_id_fkey; ALTER TABLE stage_runs ADD CONSTRAINT stage_runs_change_id_fkey FOREIGN KEY (change_id) REFERENCES changes(id) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT;
<filename>migrations/20211003030918_task_run_as_user.down.sql BEGIN; ALTER TABLE tasks DROP COLUMN run_as; ALTER TABLE api_keys ALTER COLUMN user_id SET NULL; COMMIT;
<reponame>strk/nz-buildings -- Revert nz-buildings:buildings/default_values from pg BEGIN; TRUNCATE buildings.lifecycle_stage CASCADE; TRUNCATE buildings.use CASCADE; COMMIT;
<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/crashrecovery/abort_create_needed_tests/post_sql/sql/abort_create_needed_ao_create_gist_index_post.sql begin; CREATE INDEX abort_create_needed_cr_ao_gist_idx ON abort_create_needed_cr_ao_table_gist_index USING GiST (property); INSERT INTO abort_create_needed_cr_ao...
--MPP-22020: Dis-allow duplicate constraint names for the same table. create table dupconstr ( i int, j int constraint test CHECK (j > 10), CONSTRAINT test UNIQUE (i,j)) distributed by (i); -- MPP-2764: distributed randomly is not compatible with primary key or unique -- constraints create tab...
<gh_stars>0 -- -- Show SQL Text -- SELECT sql_fulltext FROM gv$sql WHERE sql_id = '7gtys6vx02ymj' -- -- CPUs on the DB -- SELECT (SELECT MAX(value) FROM DBA_HIST_OSSTAT WHERE STAT_NAME = 'NUM_CPUS') cpu_count, (SELECT MAX(value) FROM DBA_HIST_OSSTAT WHERE STAT_NAME = 'NUM_CPU_CORES') cpu_cores, (SELECT...
/* * Table structure * From Cuyahoga 2.0, the Downloads module uses the core contentitem and fileresource tables. */ /* * Table data */ DECLARE @moduletypeid int INSERT INTO cuyahoga_moduletype (name, assemblyname, classname, path, editpath) VALUES ('Downloads', 'Cuyahoga.Modules.Downloads', 'Cuya...
alter table decks drop column if exists symbols_w, drop column if exists symbols_u, drop column if exists symbols_b, drop column if exists symbols_r, drop column if exists symbols_g;
/* r1370 Remove obsolete parser configs */ DELETE FROM `cot_config` WHERE `config_owner` = 'core' AND `config_cat` = 'parser';
USE bamazon; CREATE TABLE departments ( department_id INT NOT NULL AUTO_INCREMENT, department_name VARCHAR(30) UNIQUE NOT NULL, over_head_costs DECIMAL NOT NULL, PRIMARY KEY (department_id) );
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Aug 12, 2021 at 03:00 PM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.4.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
<filename>1119.sql -- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64) -- -- Host: 172.16.58.3 Database: loveshop3 -- ------------------------------------------------------ -- Server version 8.0.12 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
DROP TABLE IF EXISTS jdwal; CREATE TABLE jdwal ( ids serial PRIMARY KEY, id VARCHAR(255) , type VARCHAR(255) , setup VARCHAR(255) , punchline VARCHAR(255) );
prompt --application/set_environment set define off verify off feedback off whenever sqlerror exit sql.sqlcode rollback -------------------------------------------------------------------------------- -- -- ORACLE Application Express (APEX) export file -- -- You should run the script connected to SQL*Plus as the Oracle...
-- MySQL dump 10.13 Distrib 5.7.31, for Linux (x86_64) -- -- Host: localhost Database: tekplaza -- ------------------------------------------------------ -- Server version 5.7.31-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
<gh_stars>0 -- Cidade do estado do Espírito Santo INSERT INTO cidade (codigo, nome, codigo_estado) VALUES -- (1, '<NAME>', 8), -- (2, '<NAME>', 8), -- (3, '<NAME>', 8), -- (4, 'Alegre', 8), -- (5, '<NAME>', 8), -- (6, 'Alto Rio Novo', 8), -- (7, 'Anchieta', 8), -- (8, 'Apiacá', 8), -- (9, 'Aracruz', 8), -- (10, '<NAME...
<reponame>kurogosane1/LinuxisBeautifulv2 /* Warnings: - The primary key for the `Category` table will be changed. If it partially fails, the table could be left without primary key constraint. */ -- DropForeignKey ALTER TABLE `Graphics` DROP FOREIGN KEY `graphics_ibfk_1`; -- DropForeignKey ALTER TABLE `Processor...
SET SERVEROUPTUT ON; SET TIMING ON; DECLARE a SIMPLE_INTEGER := 0; bit_map bmap_builder.BMAP_SEGMENT; result bmap_builder.BMAP_SEGMENT; storage_bitmap STORAGE_BMAP_LEVEL_LIST; int_lst INT_LIST; t NUMBER; loops SIMPLE_INTEGER := 1; bmap_density NUMBER := 1; ...
USE spotper INSERT INTO faixa VALUES( 69, 'Piano Sonata No. 14 in C-Sharp Minor, Op. 27 No. 2 "Moonlight": I. Adagio sostenuto', 1, 'DDD', '00:5:26', 4, 1 ) INSERT INTO faixa VALUES( 70, 'Violin Concerto in D Major, Op. 61: II. Larghetto', 2, 'DDD', '00:7:36', 4, 0 ) INSERT INTO faixa VALUES( 71, 'Pi...
<gh_stars>1-10 -- Host: db -- Generation Time: Aug 30, 2020 at 03:06 PM -- Server version: 8.0.19 -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA...
<reponame>ErikPDev/PM3AdvanceDeaths -- #! sqlite -- #{ advancedeaths -- # { init CREATE TABLE IF NOT EXISTS "AdvanceDeaths" ( "UUID" TEXT UNIQUE, "PlayerName" TEXT DEFAULT "?", "Kills" INTEGER DEFAULT 0, "Deaths" INTEGER DEFAULT 0, "Killstreak" INTEGER DEFAULT 0, PRIMARY KEY("UUID") ) -- # } -- # { addKi...
<gh_stars>10-100 {# # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2017, The pgAdmin Development Team # This software is released under the PostgreSQL Licence #} SELECT * FROM (SELECT format_type(t.oid,NULL) AS typname, CASE WHEN typelem > 0 THEN typelem ELSE t.oid END AS elemoid, typlen, typt...
<reponame>DrizzleRaine/reldens # config values: INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'players/size/topOffset', '20', 'i'); INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'players/size/leftOffset', '0', 'i'); INSERT INTO `config` (`scope`, `path`, `value`...
USE [DB_DBA] GO IF SCHEMA_ID('Report') IS NULL BEGIN DECLARE @Command NVARCHAR(MAX) = N'CREATE SCHEMA [Report]'; EXEC (@Command); END; GO -- ============================================= -- Author: <NAME> -- Create date: 11-11-2014 -- Description: the procedure Checks for Failed Jobs -- =====================...
<filename>resources/db/patches/mysql/0475~steam_apps.sql # Create the new steam_apps table DROP TABLE IF EXISTS steam_apps; CREATE TABLE steam_apps ( name VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'Steam application name', appid INT(11) UNSIGNED NULL COMMENT 'Steam application id', PRIMAR...
-- this file is not intended to be used by development servers and as such is NOT -- synchronized with the MDB2_Schema xml file CREATE TABLE pear_mirrors ( mirrorserver varchar(50) NOT NULL PRIMARY KEY, last_sync CHAR(20) DEFAULT '0' );
SELECT c.class FROM ( SELECT cc.class, COUNT(cc.class) AS count FROM ( SELECT student, class FROM courses GROUP BY student, class ) cc GROUP BY cc.class ) c WHERE c.count >= 5;
SELECT max(zb.ZimmerBelegungId) +1 FROM ZimmerBelegung zb;
<gh_stars>0 /** * NOVIUS OS - Web OS for digital communication * * @copyright 2011 Novius * @license GNU Affero General Public License v3 or (at your option) any later version * http://www.gnu.org/licenses/agpl-3.0.html * @link http://www.novius-os.org */ CREATE TABLE IF NOT EXISTS `nos_role` ( ...
select * from {{ var('stats_installs_app_version') }}
select count(1) from vehiculos where placa = :placa
-- Stream of transactions CREATE SOURCE CONNECTOR FD_transactions WITH ( 'connector.class' = 'OracleDatabaseSource', 'name' = 'recipe-oracle-transactions-cc', 'connector.class' = 'OracleDatabaseSource', 'kafka.api.key' = '<my-kafka-api-key>', 'kafka.api.secret'...
drop database if exists blog_ci; create database blog_ci; use blog_ci; set names utf8; drop table if exists ci_post; create table ci_post ( id int(11) not null auto_increment comment 'Id', title varchar(128) collate utf8_unicode_ci not null comment '日志名称', content text collate utf8_unicode_ci not null comment '内容',...
DROP TABLE role IF EXISTS; DROP TABLE authentication_info IF EXISTS; DROP TABLE user_info IF EXISTS; CREATE TABLE user_info ( user_name VARCHAR(255) NOT NULL PRIMARY KEY, password VARCHAR(255) NOT NULL, enabled BOOLEAN DEFAULT true ); CREATE TABLE role ( id INTEGER IDENTI...
-- update SignLockFile value to /var/lock/ovirt-engine/.openssl.exclusivelock select fn_db_update_config_value('SignLockFile','/var/lock/ovirt-engine/.openssl.exclusivelock','general');
<filename>Protein_Sequences/T_DNA_Structures.sql<gh_stars>1-10 /****** Object: Table [dbo].[T_DNA_Structures] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[T_DNA_Structures]( [DNA_Structure_ID] [int] IDENTITY(1,1) NOT NULL, [Name] [varchar](64) COLLATE SQL_Latin1_General_CP1_CI_...
<reponame>greenvilleassociates/fusionshellplus -- Extra image exif metadata, added for 1.5 but quickly removed. ALTER TABLE /*$wgDBprefix*/image DROP img_exif;
<filename>store/postgres/migrations/000004_update_job_table_add_destination_column.down.sql<gh_stars>100-1000 ALTER TABLE job DROP IF EXISTS destination; DROP INDEX IF EXISTS job_destination_idx;
-- @testpoint:opengauss关键字pool(非保留),作为字段数据类型(合理报错) --前置条件 drop table if exists pool_test cascade; --关键字不带引号-合理报错 create table pool_test(id int,name pool); --关键字带双引号-合理报错 create table pool_test(id int,name "pool"); --关键字带单引号-合理报错 create table pool_test(id int,name 'pool'); --关键字带反引号-合理报错 create table pool_test(id ...
<reponame>schmandr/gretljobs SELECT gid AS t_id, typ, CASE WHEN typ = 1 THEN 'Wohnen, Mischnutzungen, öffentliche Bauten und Anlagen, Reservezone Wohnen' WHEN typ = 2 THEN 'Industrie- und reine Gewerbezone, Arbeitszone, reservezone Arbeiten' WHEN typ = 3 ...
<filename>src/AirplaneProject.Infrastructure/Migrations/20200301140638_DB_Inicial_Up.sql SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET IDENTITY_INSERT Airplanes ON INSERT INTO Airplanes (Id,Codigo,Modelo,QuantidadePassageiros,DataRegistro) VALUES (1, N'111', N'444', 777, CONVERT(DateTime, N'2019-05-13 08:25:...
<filename>migration/provider.sql drop table if exists provider_information cascade; create table provider_information ( rwo_code int primary key ); grant select on provider_information to nis_readonly; drop view if exists providing_node cascade; create view providing_node as ( select distinct node_id from connec...
<filename>db/create_databases.sql<gh_stars>0 create database if not exists racing_on_rails_development; grant all privileges on racing_on_rails_development.* to 'ror_development'@'localhost'; create database if not exists racing_on_rails_test; grant all privileges on racing_on_rails_test.* to 'ror_test'@'localhost';
create table digimon ( id serial primary key, name varchar(255), image varchar(255), level varchar(255) )
<reponame>hariaja/REST-apiUSECodeIgniter -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 17, 2021 at 02:36 PM -- Server version: 10.4.22-MariaDB -- PHP Version: 7.4.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00...
<reponame>haidang9x/diamondcbd.com<filename>database/diamondcbd.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1:3306 -- Thời gian đã tạo: Th4 18, 2019 lúc 04:20 AM -- Phiên bản máy phục vụ: 5.7.23 -- Phiên bản PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET A...
<reponame>putri19/CRUD_AJAX_UAS -- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 26 Bulan Mei 2018 pada 09.54 -- Versi server: 10.1.31-MariaDB -- Versi PHP: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone...
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 18, 2020 at 11:03 AM -- Server version: 10.4.14-MariaDB -- 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_CLIE...
<reponame>caio-vinicius/ft_services<gh_stars>0 DELETE FROM mysql.user WHERE User=''; DELETE FROM mysql.user WHERE User='root' AND HOST NOT IN ('localhost', '127.0.0.1', '::1'); DROP DATABASE IF EXISTS test; DELETE FROM mysql.db WHERE Db='test' or Db='test\\_%'; CREATE DATABASE wordpress; GRANT ALL PRIVILEGES ON wordpre...
# --- !Ups alter table tag add column use_student_display boolean default false; # --- !Downs alter table tag drop column use_student_display;
<reponame>VarletNicolas/mysocialnetwork -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Lun 07 Mai 2018 à 20:34 -- Version du serveur : 5.7.14 -- Version de PHP : 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @...
drop table if exists rules cascade; create table rules ( id serial not null primary key, rule text ); copy rules (rule) from stdin; 0 6 0 13 0 -1 1 4 5 5 5 -1 1 10 0 6 0 13 0 22 -1 1 4 5 5 5 7 -1 1 10 0 6 0 18 13 0 18 -1 1 4 5 5 5 5 5 -1 1 15 0 6 0 18 13 0 18 22 -1 1 4 5 5 5 5 5 7 -1 1 15 0 6 0 22 13 0 22 -1 1 ...
/* SQLyog Community MySQL - 5.7.26-log : Database - ppa ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_...
<reponame>kevinkda/UnivCourse_Java<filename>Undergraduate Courses/TermProject_2019-2020-2/MySQL/Course/20200609/T1.sql select *, if( CAR_TAX != null and CAR_TAX >= 20, (CAR_TAX + CAR_PRICE) * 0.2, (CAR_PRICE + if( CAR_TAX is null, ...
<reponame>gtaylor/scrapenstein DROP TABLE pagerduty_escalation_policies;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 16, 2020 at 01:34 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>ktaranov/TSqlStrong<filename>TSqlStrongDemoWebApp/wwwroot/sql/check_constraints.sql<gh_stars>10-100 /** ---------------------------------------------------------------------------- -------------------------------------------------------------------------------- T-SQL Strong will treat check constraints that e...
<reponame>emwalker/digraph<filename>migrations/1568568530_github-accounts.up.sql create table github_accounts ( id uuid primary key default gen_random_uuid(), user_id uuid not null references users(id) on delete cascade, username character varying(256) not null, name character varying(256) not null, primary_e...
-- file:plpgsql.sql ln:147 expect:true create function tg_room_ad() returns trigger as ' begin delete from WSlot where roomno = old.roomno
SELECT partner_id, partner_name, phone_no from delivery_partners where rating between 3 and 5 order by partner_id;
/* Book.ddl */ //---------------------------------------------------------------------------------------- // // Project: BookLab 1.00 // // License: Boost Software License - Version 1.0 - August 17th, 2003 // // see http://www.boost.org/LICENSE_1_0.txt or the local copy // // Copyright (c) 2017 <NAME>. Al...
<gh_stars>1-10 Rem Rem Rem ______ __ ______ ______ __ __ ______ ______ __ __ Rem /\ == \ /\ \ /\ __ \ /\ ___\ /\ \/ / /\ == \ /\ __ \ /\_\_\_\ Rem \ \ __< \ \ \____ \ \ __ \ \ \ \____ \ \ _"-. \ \ __< \ \ \/\ \ \/_/\_\/_ Rem \...
<reponame>wids-eria/ADAGE_LGN -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - -- CREAT...
<filename>SQL backup/i-Attendance.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 03, 2019 at 01:13 PM -- Server version: 10.3.12-MariaDB -- PHP Version: 7.2.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACT...
<reponame>LabKey/wnprc-modules<filename>wnprc_billing/resources/queries/wnprc_billing/perDiems.sql /* * Below query is based on WNPRC's current financial system - a query that resides in perdiems.pl: * select a.Id as id, project.account as account, h.area as location, * case * wh...
CREATE USER :user WITH PASSWORD :<PASSWORD>; DROP DATABASE IF EXISTS :dbname; CREATE DATABASE :dbname owner :user; \c :dbname;
<reponame>lauracristinaes/aula-java INSERT INTO DateEvent ( timestamp, id ) VALUES ( '2015-12-29 16:54:04.544', 1 )
-- -- 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_tablespace = ''; SET default_with...
CREATE FUNCTION public.f(p double precision) RETURNS double precision LANGUAGE plpgsql AS $_$begin return $1; end;$_$; ALTER FUNCTION public.f(p double precision) OWNER TO shamsutdinov_lr; CREATE FUNCTION public.f(p integer) RETURNS integer LANGUAGE plpgsql AS $_$begin return $1; end;$_$; ALTER FUNCT...
<reponame>FatChicken277/holbertonschool-higher_level_programming<gh_stars>0 -- This script creates the database hbtn_0d_usa and the table states -- (in the database hbtn_0d_usa) on your MySQL server. CREATE DATABASE IF NOT EXISTS hbtn_0d_usa; USE hbtn_0d_usa; CREATE TABLE IF NOT EXISTS states( id INT NOT NULL UNIQ...
<reponame>snrogers/hauth CREATE EXTENSION citext; CREATE EXTENSION pgcrypto; -- DROP TABLE auths IF EXISTS; -- DROP TABLE schema_migrations IF EXISTS; CREATE TABLE auths ( id bigserial PRIMARY KEY NOT NULL, pass citext NOT NULL, email citext NOT NULL UNIQUE, email_verification_code text NOT NULL, is_email_v...
<gh_stars>1-10 -- Find whether a particular user is logged in select session_id from sys.dm_exec_sessions where login_name = 'DOMAIN\user'; -- the username in question -- (requires domain if searching for a windows authentication account) -- (doesn't i...
--SERVER create class t1(i int); insert into t1 values (1), (2), (3), (4), (5); create class t2(i int); insert into t2 values (3), (4), (5), (6), (7); delete t1 from t1 right join t2 on t1.i=t2.i; select * from t1 order by 1; select * from t2 order by 1; drop table t1; drop table t2;
<gh_stars>0 -- @testpoint: 创建行存分区表,合理报错 drop table if exists test_uuid_11; create table test_uuid_11 (c1 uuid,c2 int) with(orientation=row, compression=no) PARTITION BY RANGE (c1) ( PARTITION P1 VALUES LESS THAN('11111111-1111-1111-1111-111111111111'), PARTITION P2 VALUES LESS THAN('22222222-2222-2222-...
<reponame>orlandobrea/proethos2<gh_stars>10-100 REPLACE INTO `list_gender` (`id`, `created`, `updated`, `name`, `slug`, `status`) VALUES (1,'1970-01-01 00:00:00','1970-01-01 00:00:00','N/A','n-a',1); REPLACE INTO `list_gender` (`id`, `created`, `updated`, `name`, `slug`, `status`) VALUES (2,'1970-01-01 00:00:00','1970-...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 25 Jul 2018 pada 21.31 -- Versi Server: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<reponame>nicolasjuniar/boilerplate-api<filename>boilerplate_db.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 01, 2019 at 03:15 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET A...
<reponame>emuuul17/surveybbt -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 26, 2019 at 02:40 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_...