sql
stringlengths
6
1.05M
// You can create a user for the application CREATE USER IF NOT EXISTS watchdog WITH PASSWORD '<PASSWORD>' NOSUPERUSER; // Create the keyspace CREATE KEYSPACE IF NOT EXISTS watchdog WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true; // Grant permissions GRANT ALL PERMI...
CREATE TABLE `tblVendorRate` ( `VendorRateID` int(11) NOT NULL AUTO_INCREMENT, `AccountId` int(11) NOT NULL, `TrunkID` int(11) NOT NULL, `RateId` int(11) NOT NULL, `Rate` decimal(18,6) NOT NULL DEFAULT '0.000000', `EffectiveDate` datetime NOT NULL, `updated_at` datetime DEFAULT NULL, `created_at` dateti...
DROP TABLE IF EXISTS FAVORITE; DROP TABLE IF EXISTS TAG; DROP TABLE IF EXISTS PHYSICAL_ADDRESS; DROP TABLE IF EXISTS CUSTOMER; CREATE TABLE CUSTOMER ( ID BIGINT PRIMARY KEY AUTO_INCREMENT, TITLE VARCHAR(20), FIRST_NAME VARCHAR(255), LAST_NAME VARCHAR(255), DATE_OF_BIRTH DA...
select XEventData.XEvent.value('(data/value)[1]', 'varchar(max)') as DeadlockGraph FROM (select CAST(target_data as xml) as TargetData from sys.dm_xe_session_targets st join sys.dm_xe_sessions s on s.address = st.event_session_address where name = 'system_health') AS Data CROSS APPLY TargetData.nodes ('//RingBufferTar...
<reponame>adamdriscoll/TfsIntegrationPlatform CREATE VIEW [dbo].[SessionGroupDetailsView] AS SELECT sData.SessionGroupUniqueId AS SessionGroupUniqueId ,sData.SessionGroupFriendlyName AS SessionGroupFriendlyName ,sData.SessionUniqueId AS SessionUniqueId ,sData.SessionFriendlyName AS SessionFriendlyN...
<reponame>aliostad/deep-learning-lang-detection<filename>data/test/sql/0d48d7a9eb57813406a038185e344f9048fa4e50nav.sql 9-15-2013 Verified Uploader:wmza Time:19:1:48 ('ru','nav',',?Comment Moderation','Модерация комментариев','wmza','1.1.2 Dragonprime Edition '), ('ru','nav','/?New Day','/?Новый день','wmza','1.1.2 Drag...
create table if not exists images ( id binary (12) not null, folder_id int not null, `type` varchar (24) not null, width int not null, height int not null, max_width int not null, max_height int not null, `size` int not null, uploaded_size int not null, average_color varchar (32) not null, copies JSON, crea...
 --Functions -- Scalar Function = Geriye istediğimiz tipte değer gönderen fonksiyon -- Inline Function = Geriye tablo döndüren fonksiyon USE Northwind go CREATE FUNCTION Topla(@Sayi1 INT, @Sayi2 INT) RETURNS INT AS BEGIN DECLARE @RESULT INT = 0 SET @RESULT = @Sayi1 + @Sayi2 RETURN @RESULT; END go --SELECT Top...
<gh_stars>10-100 -- file:type_sanity.sql ln:281 expect:true SELECT p1.oid, p1.typname, p2.oid, p2.typname FROM pg_type AS p1, pg_type AS p2 WHERE p1.typelem = p2.oid AND NOT (p1.typmodin = p2.typmodin AND p1.typmodout = p2.typmodout)
ALTER TABLE application_form_item_map DROP COLUMN maxlength;
ALTER TABLE c_commu_member ADD COLUMN is_display_topic_home smallint; ALTER TABLE c_commu_member ALTER COLUMN is_display_topic_home SET DEFAULT 1; UPDATE c_commu_member SET is_display_topic_home = 1; ALTER TABLE c_commu_member ALTER COLUMN is_display_topic_home SET NOT NULL; CREATE INDEX c_commu_member_c_member_id_is_d...
LOAD DATA LOCAL INFILE "__PathToCsv__" INTO TABLE mft CHARACTER SET 'latin1' COLUMNS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '"' LINES TERMINATED BY '\n' IGNORE 1 LINES (`RecordOffset`, `Signature`, `IntegrityCheck`, `Style`, @HEADER_MFTREcordNumber, @HEADER_SequenceNo, @Header_HardLinkCount, @F...
!set variable_substitution=true; -- This is the stage used to load the data into Snowflake -- -- Run with Makefile through snowsql -- use role &{GRANTS_ADMIN_ROLE}; create or replace role KEXP_READER_ACCESS; create or replace role KEXP_READER_FUNCTION; grant role KEXP_READER_ACCESS to role KEXP_READER_FUNCTION; gr...
<filename>Q1.sql --a Employee tbl create table Employee( EmpNo int NOT NULL primary key , EmpName nvarchar(30) , BirthDay datetime NOT NULL , DeptNo int NOT NULL , MgrNo int NOT NULL , StartDate datetime NOT NULL , Salary money NOT NULL , Level int NOT NULL check((Level=(7) OR Level=(6) OR Level=(5) OR Level...
<reponame>simhnna/sourcegraph -- +++ -- parent: 1528395904 -- +++ BEGIN; DROP INDEX IF EXISTS security_event_logs_source; COMMIT;
CREATE VIEW master_table AS SELECT bims_out."APN", bims_out."Property_Address", hims_out."Apn" , hims_out."StreetName", prop_site_address_out."Apn", prop_site_address_out."StreetName", rent_out."APN" FROM bims_out FULL OUTER JOIN hims_out ON to_number(bims_out."APN",'9') = to_number(hims_out."Apn",'9')...
<reponame>pydemo/spv_14.4 select count(*) from no_nulls where rowid >= 100 0
<gh_stars>0 with bad_rules as ( select group_id, count(*) as num_bad_rules from aws_vpc_security_group_rule where type = 'ingress' and cidr_ipv4 = '0.0.0.0/0' and ( ip_protocol in ('tcp', 'udp') or ( ip_protocol = '-1' and from_port is null ) ) group...
<reponame>supergee/conversation-bilingual<gh_stars>1-10 create table branch ( code smallint, city varchar(50), name varchar(50), address varchar(255), phone varchar(50) );
<filename>src/sql/05-1.sql -- INSERT INTO arrs VALUES ('i', ARRAY[1, 3, 5, 3]); INSERT INTO arrs VALUES ('j', ARRAY[1, 3, 2]); INSERT INTO arrs VALUES ('k', ARRAY[5, 3]);
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; CREATE EXTENSION IF NOT EXISTS tablefunc WITH SCHEMA public; CREATE EXTENSION IF NOT EXISTS unaccent WITH SCHEMA public; CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public;
<reponame>lulzzz/tellma CREATE PROCEDURE [dal].[EntryTypes__Save] @Entities [EntryTypeList] READONLY, @ReturnIds BIT = 0, @UserId INT AS BEGIN SET NOCOUNT ON; DECLARE @IndexedIds [dbo].[IndexedIdList]; DECLARE @Now DATETIMEOFFSET(7) = SYSDATETIMEOFFSET(); INSERT INTO @IndexedIds([Index], [Id]) SELECT x.[Index...
CREATE INDEX "identity_verification_tokens_nid_idx" ON "identity_verification_tokens" (id, nid);
CREATE DATABASE IF NOT EXISTS `prestashop_bdd`; CREATE USER IF NOT EXISTS 'prestashop'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON `prestashop_bdd`.* TO 'prestashop'@'%';
<reponame>sehrope/pg-search-all<filename>src/gen_search_all.sql CREATE OR REPLACE FUNCTION gen_search_all () RETURNS text AS $$ SELECT string_agg(z.sql, CHR(10) || ' UNION ALL ' || CHR(10)) FROM (SELECT 'SELECT ' || quote_literal(t.table_schema) || '::text AS table_schema' || ', ' || quote_lite...
<filename>doc/fw-cloud-wechat.sql<gh_stars>0 -- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.7.21 - MySQL Community Server (GPL) -- 服务器操作系统: Linux -- HeidiSQL 版本: 8.0.0.4396 -- ---------------...
<gh_stars>0 create user `db_admin`@`localhost` identified by 'password' ; GRANT ALL PRIVILEGES ON *.* TO 'db_admin'@'localhost' with grant option;
<gh_stars>0 INSERT INTO burgers (burger_name) VALUES ('Chicken burger'); INSERT INTO burgers (burger_name) VALUES ('Ham burger'); INSERT INTO burgers (burger_name) VALUES ('Cheese burger'); INSERT INTO burgers (burger_name, devoured) VALUES ('Cheese burger', true); INSERT INTO burgers (burger_name, devoured) VALUE...
<filename>Populating Script/Script_Populare_Aneo.sql DROP TABLE customers CASCADE CONSTRAINTS / DROP TABLE accounts CASCADE CONSTRAINTS / DROP TABLE transactions CASCADE CONSTRAINTS / DROP TABLE transactions_history CASCADE CONSTRAINTS / DROP TABLE credit_cards CASCADE CONSTRAINTS / DROP TABLE packs CASCADE CONSTRAINTS...
<reponame>Jeff-All/Dohyo<filename>views/rikishi_matches.sql CREATE VIEW rikishi_matches AS SELECT r.id as rikishi_id, m.id as match_id, t.id as tournament_id, m.day as day, m.winner_id != 0 as concluded, m.winner_id = r.id as won, r2.id as opponent FROM matches as m JOIN tournaments as t ON m.tournament_id ...
/* leave this l:see LICENSE file g:utility k:list,depend,object,dependencies,tree v:130521.1000\s.zaglio: print the tree of dependencies of an object t:sp__depends 'sp__script' */ CREATE proc sp__dependent @obj sysname = null, @level int = null, @opt sysname = null, @dbg int=0 as b...
<filename>src/main/resources/db/migration/V38__tilskuddsperiode_status.sql alter table tilskudd_periode add column status varchar;
USE sdi; DROP TABLE if exists child; CREATE TABLE child ( AGEGROUP VARCHAR(12), MARKER VARCHAR(2) ); INSERT INTO child VALUES ('<2 YEARS','O'), ('2-4 YEARS','O'), ('5-9 YEARS','C'), ('10-14 YEARS','C'), ('15-19 YEARS','C'), ('20-29 YEARS','A'), ('30-39 YEARS','A'), ('40-49 YEARS','A'), ('50-59 YEARS','A')...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 26, 2021 at 11:53 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<reponame>mdmadonna/SQLite-Workshop<gh_stars>1-10 --*************************************************************************************************************************** -- -- SQL Template for a Query to produce summary totals by Column Number. The -- Where Clause should be removed or customized as need...
create or replace view "AIRBYTE_DATABASE"._AIRBYTE_TEST_NORMALIZATION."CONFLICT_STREAM_NAME_CONFLICT_STREAM_NAME_CONFLICT_STREAM_NAME_AB3" as ( -- SQL model to build a hash column based on the values of this record select *, md5(cast( coalesce(cast(_AIRBYTE_CONFLICT_STREAM_NAME_2_HASHID as ...
print 'DYNAMIC_BUTTONS MassUpdate admin'; set nocount on; GO if not exists(select * from DYNAMIC_BUTTONS where VIEW_NAME = 'ACLRoles.MassUpdate' and DELETED = 0) begin -- then print 'DYNAMIC_BUTTONS ACLRoles MassUpdate'; exec dbo.spDYNAMIC_BUTTONS_InsButton 'ACLRoles.MassUpdate' , 0, 'ACLRoles' ...
<filename>Chapter05/r1/03_grant_privileges_as_sysadmin.sql<gh_stars>10-100 --Logout from the dev_dba_user1 and log back in as the user used previous steps. We now will create a new role to manage access to the DEV database, hence the name DEV_DBA. USE ROLE SECURITYADMIN; CREATE ROLE DEV_DBA; --a new role has no pri...
CREATE EXTERNAL TABLE [fhir].[ChargeItem] ( [resourceType] NVARCHAR(4000), [id] VARCHAR(64), [meta.id] NVARCHAR(100), [meta.extension] NVARCHAR(MAX), [meta.versionId] VARCHAR(64), [meta.lastUpdated] VARCHAR(64), [meta.source] VARCHAR(256), [meta.profile] VARCHAR(MAX), [meta.security]...
-- 路由初始化数据 INSERT INTO role (r_id, r_name, r_description) VALUES (1, 'USER', 'User Role - 拥有普通用户权限'); INSERT INTO role (r_id, r_name, r_description) VALUES (2, 'ADMIN', 'Admin Role - 拥有平台所有权限'); -- 用户初始化数据,密码默认<PASSWORD> INSERT INTO users (u_id, u_username, u_password, u_avatar) VALUES (1, 'user', '<PASSWORD>', ...
<filename>src/OtisEd-EdFi-Exchange/dbo/Tables/CodeXref.sql CREATE TABLE [dbo].[CodeXref] ( [Id] INT IDENTITY (1, 1) NOT NULL, [CodeCategory] NVARCHAR (50) NOT NULL, [ValueColumnName] NVARCHAR (50) NULL, [ValueDataType] NVARCHAR (50) NULL, [LocalCode] NVARCHAR (...
SELECT * FROM DGB_EXTENSION_POINTS WHERE EXTPOINT_LOCATION = ?
<reponame>rciam/rciam-service-registry SELECT preferred_username as username, user_info.email, group_manager,group_id,sub,invitation_id,date as invitation_date,foo.email as invitation_email,CASE WHEN EXTRACT(EPOCH FROM ${now} - date)>${validity_seconds} THEN true ELSE false END as expired FROM ((SELECT sub, grou...
<gh_stars>1-10 insert into "security_permission" (security_permission_id, created_on_date, last_updated_date, description) values ('FIND_ANY_STUDENT', timestamp 'now', timestamp 'now', 'Allows user to find any student irrespective of application to college'); insert into "security_group_security_permission" (securit...
<filename>src/Frapid.Web/Areas/MixERP.Inventory/db/PostgreSQL/2.x/2.0/src/02.functions-and-logic/inventory.is_periodic_inventory.sql DROP FUNCTION IF EXISTS inventory.is_periodic_inventory(_office_id integer); CREATE FUNCTION inventory.is_periodic_inventory(_office_id integer) RETURNS boolean AS $$ BEGIN I...
<reponame>addstone/derby -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version...
<gh_stars>100-1000 insert into `rows`.`t` (a) values ('vr/g 8uoZ&26U+*%|(k3'), (':v3uo7whT`Zz>tD=[,)\r'), ('nuq,%sl5+i/pX2''Ur-"`'), ("\tB>+a?]m\\9T!{2X@I:'k"), ('8_/GI}Oh&|YPo0k,@[FB'), ("Lnx3WawtgN'.J)\n[C-V!"), ("$cislLng'V/`Ce[\\\nA4K"), ('&)Jd_tHBY-!Lz?Ij0f\t*'), ('B1KGE,#[L:@Pq8\n_*ANF'), ("([\\c:'>U/)wDN4zQf\tC6...
-- phpMyAdmin SQL Dump -- version 4.0.10.6 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Апр 01 2019 г., 09:06 -- Версия сервера: 5.5.41-log -- Версия PHP: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
--+ holdcas on; drop table if exists y; create table y ( b varchar default '', c varchar default null); select attr_name, default_value from db_attribute where class_name = 'y' order by 1,2; desc y; drop table if exists y; --+ holdcas off; commit;
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Waktu pembuatan: 17 Mar 2022 pada 13.03 -- Versi server: 10.5.13-MariaDB-cll-lve -- Versi PHP: 7.3.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
select ROUND(( select sum(bytes)/1024/1024/1024 data_size from sys.dba_data_files ) + ( select nvl(sum(bytes),0)/1024/1024/1024 temp_size from sys.dba_temp_files ) + ( select sum(bytes)/1024/1024/1024 redo_size from sys.v_$log ) + ( select sum(BLOCK_SIZE*FILE_SIZE_BLKS)/1024/1024/1024 controlfile_size from v$controlfi...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50527 Source Host : localhost:3306 Source Database : db_share_app Target Server Type : MYSQL Target Server Version : 50527 File Encoding : 65001 Date: 2016-11-15 16:29:20 */ SET FOREIGN_KEY_CHECKS=0; ...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 17, 2019 at 07:19 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<gh_stars>0 create database db_cpm_old; use db_cpm_old; drop table student; drop table teacher; drop table project_submission; drop table project; create table teacher( id varchar(40) primary key, name varchar(20), password varchar(64) ); create table student( id int auto_increment primary key, ...
<filename>backend/database/populate_tables.sql INSERT INTO Barrel_Types(id, created_at, total_volume) VALUES(1, '2021-09-02 12:46:52.681961', 50); INSERT INTO Barrel_Types(id, created_at, total_volume) VALUES(2, '2021-09-02 12:46:52.681961', 208); INSERT INTO Barrel_Types (id, created_at, total_volume) VALUES(3, '2021-...
<filename>storage/database/countries/gp.sql<gh_stars>0 -- MySQL dump 10.13 Distrib 5.6.35, for osx10.9 (x86_64) -- -- Host: localhost Database: Quickadclassified -- ------------------------------------------------------ -- Server version 5.6.35 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4...
create index pi_person_id_idx on person_info (person_id); create index ci_movie_id_idx on cast_info (movie_id); create index ci_person_id_idx on cast_info (person_id); create index pi_info_type_id_idx on person_info (info_type_id); create index t_kind_type_id_idx on title (kind_id); create index mi_movie_info_movi...
<filename>gumanet.sql /* Navicat Premium Data Transfer Source Server : wamp64 Source Server Type : MySQL Source Server Version : 50726 Source Host : localhost:3306 Source Schema : gumanet Target Server Type : MySQL Target Server Version : 50726 File Encoding : 65001 ...
<filename>Joins, Subqueries, CTE and Indices/04. Employee Departments.sql SELECT TOP(5) EmployeeID, FirstName, Salary, D.[Name] FROM Employees AS E JOIN Departments AS D ON E.DepartmentID = D.DepartmentID WHERE Salary > 15000 ORDER BY E.DepartmentID
<filename>schema.sql DROP DATABASE IF EXISTS steam_addToCart; CREATE DATABASE steam_addToCart; USE steam_addToCart; CREATE TABLE games ( ID INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, price INT, PRIMARY KEY (ID) );
<gh_stars>0 if not exists (select * from sys.extended_properties where name = 'js_Version' and value = '2.4') begin raiserror ('Wrong js_Version', 20, -1) with log end set identity_insert [dbo].[js_JobScheduleTypes] on go update [dbo].[js_JobScheduleTypes] set [Type] = 'Weekly' where [JobSchedu...
drop TABLE orders; CREATE TABLE IF NOT EXISTS orders ( orderid serial PRIMARY KEY, purchasedate TIMESTAMP NOT NULL, ammount money NOT NULL ); select * from orders order by 3 desc; SELECT make_interval(secs => 1); SELECT make_interval(days => 1, hours => 2); SELECT make_interval(0, 1, 0, 5, 0, 0, 0.0), to_nu...
/** * Get content for projects page (last 5 only) */ SELECT pr.project_id ,pr.title ,pr.description ,pr.image FROM projects AS pr WHERE pr.active = 1 ORDER BY pr.date_entry DESC LIMIT 5;
<gh_stars>1-10 create or replace function assert.equal(_expected anyelement, _actual anyelement, _comment text default '') returns boolean as $$ begin IF _expected != _actual THEN return assert.fail(format('Not equal: %s (expected) != %s (actual)', _expected, _actual), _comment); END IF...
CREATE TABLE accounts ( id serial NOT NULL, name varchar(255) NOT NULL UNIQUE, password varchar(255) DEFAULT '' NOT NULL, status int, PRIMARY KEY(id) ); CREATE TABLE torrents ( id serial NOT NULL, name text NOT NULL, description text DEFAULT '' NOT NULL, filename varchar(255) NOT NU...
<reponame>Skatterbrainz/sktools<gh_stars>1-10 SELECT v_GS_OPTIONAL_FEATURE.Name0 AS FeatureName, v_GS_OPTIONAL_FEATURE.Caption0 AS FeatureID, v_GS_OPTIONAL_FEATURE.ResourceID, case when (v_GS_OPTIONAL_FEATURE.InstallState0 = 1) then 'Enabled' when (v_GS_OPTIONAL_FEATURE.InstallState0 = 2) then 'Di...
<filename>spec/fixtures/simple.sql<gh_stars>1-10 /* ********************************************************************* http://www.mysqltutorial.org ********************************************************************* Name: MySQL Sample Database classicmodels Link: http://www.mysqltutorial.org/mysql-sample-database....
<filename>db/app/ddl/src/full/02.ORACLE_TOOLS.TYPE_SPEC.T_CONSTRAINT_OBJECT.sql CREATE TYPE "ORACLE_TOOLS"."T_CONSTRAINT_OBJECT" authid current_user under oracle_tools.t_dependent_or_granted_object ( object_name$ varchar2(4000 char) , column_names$ varchar2(4000 char) , search_condition$ varchar2(4000 char) , constrain...
-- file:tsearch.sql ln:533 expect:true insert into phrase_index_test values (to_tsvector('english', 'A fat cat has just eaten a rat.'))
-- Create the resetHexes table ALTER TABLE ownerResetHexes RENAME TO resetHexes; ALTER TABLE resetHexes RENAME ownerHex TO hex; ALTER TABLE resetHexes ADD entity TEXT NOT NULL DEFAULT 'owner';
<filename>db/schema.sql CREATE DATABASE burgers_db; Use burgers_db; CREATE TABLE burgers ( id int NOT NULL AUTO_INCREMENT, burger_name VARCHAR(255), devoured BOOLEAN DEFAULT false, PRIMARY KEY (id) );
<gh_stars>0 INSERT INTO `event_notification` ( `event_id`, `title`, `text`, `publish`, `deleted`, `created`, `last_updated`) VALUES (17, 'event test 13 notification 5', 'event test 13 notification 5 text', 1, 0, '2015-09-24 04:44:14', '2015-09-24 04:44:14'), (17, 'event test 13 notification 6', 'event test 13 notifica...
<reponame>xinxian0458/impala-tpcds-kit -- -- adjust the schema name if necessary -- currently (tpcds_10000_parquet) -- create schema if not exists tpcds_10000_parquet; use tpcds_10000_parquet; -- -- unpartitioned tables -- create table call_center like tpcds_10000_text.call_center stored as parq...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 11, 2019 at 11:46 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>zhenghua75/DXInfo<filename>DXInfo.Models/SqlServerScript/sp_DXInfo_GetCurrentStockOfCheck.sql<gh_stars>1-10 IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sp_DXInfo_GetCurrentStockOfCheck]') AND type in (N'P')) drop procedure dbo.sp_DXInfo_GetDeptInventory IF not EXISTS (SELECT * ...
<filename>project/db/create.sql<gh_stars>1-10 CREATE DATABASE users; CREATE DATABASE users_test;
<filename>Src/Entity.Database/Scripts/Environment/Dev.sql PRINT N'Environment-specific script: Dev.sql'; -- Good place to script test records, ensure data is obfuscated, reconfigure environmental records
<gh_stars>1-10 DROP TABLE Enumerations; CREATE TABLE Enumerations ( Enum_Id int4 NOT NULL, Enum_Day int4 NOT NULL, Enum_Color int4 NOT NULL, Enum_Month int4, CONSTRAINT PK_Enumerations PRIMARY KEY (Enum_Id) ) WITHOUT OIDS; ALTER TABLE Enumerations OWNER TO "IBatisNet"; INSERT INTO Enumerations VALUES(1, 1,...
<reponame>sharmajiii/so use requestdb; ALTER TABLE infra_active_requests ADD FLOW_STATUS LONGTEXT; ALTER TABLE archived_infra_requests ADD FLOW_STATUS LONGTEXT; ALTER TABLE infra_active_requests ADD RETRY_STATUS_MESSAGE LONGTEXT; ALTER TABLE archived_infra_requests ADD RETRY_STATUS_MESSAGE LONGTEXT;
<reponame>ngmautri/nhungttk<filename>config/config_data/mla.sql -- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Erstellungszeit: 01. Jan 2016 um 03:58 -- Server Version: 5.6.16 -- PHP-Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!4...
autocommit off; select shipment_id, product.product_code, quantity, to_location from joe.shipment_c s order by 1,2,3,4; update joe.shipment_c set quantity = 100*2, to_location = 'capri' where product.product_code < 3; select shipment_id, product.product_code, quantity, to_location from joe.shipment_c s o...
autocommit off; --set optimization: level 257 select big into :o1 from big where a = 1000; alter big add class attribute kind big; update class big set kind = :o1; evaluate class big into :c; select kind, kind.a, kind.b from class big x where x = :c; rollback;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 25, 2021 at 06:35 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
/* SQLyog Ultimate v10.00 Beta1 MySQL - 5.5.5-10.1.34-MariaDB : Database - codeigniter ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FO...
CREATE TABLE "category_letter" ( "id" SERIAL PRIMARY KEY, "letter" varchar(20), "path" varchar(20) );
ALTER TABLE member ADD CONSTRAINT member_user_id_key UNIQUE (user_id);
<gh_stars>1-10 CREATE TABLE FILING_HIST ( FILING_NUM TEXT, LAYOUT_CODE TEXT, DOCUMENT_NUMBER NUMERIC, FILING_TYPE_ID NUMERIC, FILING_TYPE TEXT, ENTRY_DATE DATE, FILING_DATE DATE, EFFECTIVE_DATE DATE, EFFECTIVE_COND_FLAG NUMERIC, INACTIVE_DATE DATE ); CREATE INDEX ON FILING_HIST(F...
<reponame>CSCfi/antero -- Erikoistumiskoulutukset Virrasta USE ANTERO GO IF EXISTS ( SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='sa' AND TABLE_NAME='sa_virta_otp_erikoistumiskoulutukset' ) BEGIN DROP TABLE sa.sa_virta_otp_erikoistumiskoulutukset END IF NOT EXISTS ( SELECT * FROM INFORMATION_SCHEM...
-- Step By Step Development of Description Composite Views from Concepts, Descriptions and Language refsets -- STEP 3: Show all active synonyms for a concept. SELECT * FROM snap_description WHERE conceptId = 80146002 AND active=1 AND typeId=900000000000013009; -- Run this query. -- Note that: -- 1. Only acti...
<gh_stars>1-10 CREATE TABLE [dbo].[UserRatings]( [Id] [bigint] IDENTITY(1,1) PRIMARY KEY NOT NULL, [UserId] [bigint] NOT NULL, [RatingId] [bigint] NOT NULL, [Rating] [float] NOT NULL, [Timestamp] DATETIME NOT NULL DEFAULT GETDATE(), CONSTRAINT [FK_UserRatings_ToUsers] FOREIGN KEY ([UserId]) REFERENCES [U...
<filename>Banco Dados/ModeloFisico.sql CREATE DATABASE Rede_Concessionaria; USE Rede_Concessionaria; DROP TABLE Cliente; CREATE TABLE Cliente ( IdCliente INTEGER IDENTITY (1,1), NomeCliente VARCHAR(45) NOT NULL, CadastroCliente VARCHAR(14) UNIQUE NOT NULL, EmailCliente VARCHAR(45) UNIQUE NOT NULL, ...
<gh_stars>10-100 -- file:tsdicts.sql ln:34 expect:true SELECT ts_lexize('hunspell', 'skies')
<reponame>Shuttl-Tech/antlr_psql -- file:portals.sql ln:526 expect:true declare c1 scroll cursor for select (select 42) as x
select value from nls_session_parameters where parameter = 'NLS_CURRENCY'
<filename>cql/src/test/resources/driver/input/pipelinehaving.cql create input stream S1(column1 string,column2 int) SOURCE KafkaInput PROPERTIES ("operator.kafka.groupid" = "zhou123","operator.kafka.topic" = "Previous_input_0040_0002", "operator.kafka.zookeepers" = "192.168.0.2:2181"); c...
-- -- Version : 8.0.0 -- -- File : xwcheckdb-8.0.0.sql -- Purpose : this file contains the needed SQL commands to -- test if DB is 7.2.0 compliant -- -- -- Since XWHEP 8.0.0 : -- * apps contains two rows for init scripts -- SELECT launchscriptshuri FROM apps; -- -- End Of File --
<reponame>peterfigure/explorer-service ALTER TABLE transaction_cache DROP COLUMN IF EXISTS tx; DROP TABLE IF EXISTS validator_addresses; CREATE TABLE validator_addresses ( id SERIAL PRIMARY KEY, account_address VARCHAR(96) NOT NULL UNIQUE, operator_address VARCHAR(96) NOT NULL UNIQUE, ...
<filename>wwwroot/ewcommon/sqlUpdate/toV4/4.0.1.45/fxn_getContentParents.sql<gh_stars>1-10 CREATE FUNCTION [dbo].[fxn_getContentParents](@nContentID int) RETURNS nvarchar(128) BEGIN DECLARE @parentlist varchar(255), @parent varchar(255) DECLARE parents CURSOR FOR SELECT nStructId FROM tblContentLo...
CREATE INDEX idx_job_candidates_job_id ON job_candidates (job_id); CREATE INDEX idx_job_candidates_candidate_id ON job_candidates (candidate_id);
<reponame>mssteuer/casper-clarity<filename>packages/event_store/src/migrations/20210326_add_withdrawals.sql -- +migrate Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE `Withdrawals` ( `key` varchar(74) NOT NULL, `deployHash` varchar(64) NOT NULL, `validatorPublicKey` varch...