sql
stringlengths
6
1.05M
-- 2021-11-05T16:58:49.872Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='exists ( select 1 from PMM_PurchaseCandidate pc join PMM_PurchaseCandidate_OrderLine pco on pc.PMM_PurchaseCandidate_ID = pco.PMM_PurchaseCandidate_ID join C_OrderLine ol on pco.C_Order...
<gh_stars>0 create table EMP_LANG ( empno NUMBER(4) not null, ename VARCHAR2(10), job_no NUMBER, mgr NUMBER(4), hiredate DATE, sal NUMBER(7,2), comm NUMBER(7,2), deptno NUMBER(2) );
<filename>apgdiff.tests/src/main/resources/cz/startnet/utils/pgdiff/modify_ms_function_type_original.sql<gh_stars>10-100 SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION [dbo].[func]() RETURNS @t TABLE (c1 int NULL) AS begin insert @t SELECT c1 from test.mstable; return; end
<gh_stars>1-10 DROP TRIGGER IF EXISTS trg_blocks_sink_trim_after_upsert ON cosmos._blocks; DROP TRIGGER IF EXISTS trg_blocks_sink_upsert ON cosmos._blocks; DROP FUNCTION IF EXISTS cosmos.sink_blocks_insert; DROP FUNCTION IF EXISTS cosmos.sink_trim_blocks_after_insert; DROP TABLE IF EXISTS cosmos._blocks; DROP TABLE IF ...
<gh_stars>0 -- TODO check if worker should not refresh, current lib should be diskquota-2.0.so -- table part ALTER TABLE diskquota.quota_config ADD COLUMN segratio float4 DEFAULT 0; CREATE TABLE diskquota.target ( rowId serial, quotatype int, -- REFERENCES disquota.quota_config.quotatype, primaryOid oid, tablespa...
<reponame>faizol/babelfish_extensions<filename>test/JDBC/input/babel_datetime2.sql -- Testing inserting into the table create table datetime2_testing ( dt DATETIME2 ); INSERT INTO datetime2_testing VALUES('1753-1-1 00:00:00.000'); INSERT INTO datetime2_testing VALUES('9999-12-31 23:59:59.998'); INSERT INTO datetime2_te...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [User.Session].[UpdateSession] @SessionID UNIQUEIDENTIFIER, @UserID INT=NULL, @LastUsedDate DATETIME=NULL, @LogoutDate DATETIME=NULL, @SessionPersonNodeID BIGINT = NULL OUTPUT, @SessionPersonURI VARCHAR(400) = NULL OUTPUT, @UserURI VARCHAR(400)...
<gh_stars>1000+ CREATE TABLE "table" ( `column11` BIGINT, `column13` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL )
SELECT SQRT(4) FROM db_root; SELECT SQRT('4') FROM db_root; SELECT SQRT('a') FROM db_root; SELECT SQRT(NULL) FROM db_root; select sqrt(12345678901234512345) from db_root;
CREATE TABLE `sline_theme` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `aid` varchar(255) DEFAULT NULL, `webid` int(2) unsigned DEFAULT '0', `ztname` varchar(255) DEFAULT NULL, `seotitle` varchar(255) DEFAULT NULL COMMENT 'seo标题', `shortname` varchar(255) DEFAULT NULL COMMENT '专题简短主题', `keyword` var...
<gh_stars>1-10 ALTER TABLE EXTERNAL_LINK ADD COLUMN CATEGORY VARCHAR(255) AFTER `LIST_INDEX`;
<reponame>bokesan/icfpcontest2021.github.io CREATE TABLE IF NOT EXISTS db_version ( version INT NOT NULL ); INSERT INTO db_version (version) SELECT 1 WHERE NOT EXISTS (SELECT * FROM db_version);
CREATE COLUMN TABLE "DH_INPUT"."com_sap_appint_c4c_serviceRequests" ("ObjectID" NVARCHAR(70) NOT NULL , "ID" NVARCHAR(35), "UUID" NVARCHAR(1024), "Name" NVARCHAR(255), "ProductRecipientPartyID" NVARCHAR(60), "ProductRecipientPartyUUID" NVARCHAR(1024), "ProductRecipientPartyName" NVARCHAR(480), "IncidentServiceIssueCate...
<filename>database/tracking_filter.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.4.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 13, 2017 at 11:22 AM -- Server version: 5.6.25 -- PHP Version: 5.6.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @O...
-- INSERT INTO `sb_sidebar` (`id`, `activate_menu`, `activate_not`, `base_url`, `icon`, `name`, `parent`, `role_id`, `status`) VALUES (NULL, 'inventory', '{\"0\":\"\"}', 'admin/#', '<i class=\"nav-icon fab fa-list\" aria-hidden=\"true\"></i>', 'Inventory', '0', '1', '1'); -- INSERT INTO `sb_sidebar` (`id`, `activate_m...
<reponame>destiaarti/broadcast-wa-ci -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 12, 2021 at 07:28 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; ...
SELECT c.name FROM customers c WHERE c.cid IN (SELECT cid FROM orders WHERE order_date = '2011-01-01' ORDER BY oid LIMIT 1)
<filename>migrations/001_create_users_table.up.sql CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `email` varchar(45) NOT NULL, `password_hash` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL ...
SELECT L.CODFILIAL, L.RECNUM, L.DTLANC, L.CODFORNEC, C.CLIENTE, L.HISTORICO, L.NUMNOTA, L.VALOR, L.NOMEFUNC FROM PCLANC L LEFT JOIN PCCLIENT C ON L.CODFORNEC = C.CODCLI WHERE L.CODCONTA = 100020 AND L.DTLANC >= TRUNC (SYSDATE) - 90 ORDER BY L.DTLANC DESC;...
<reponame>BloomBooks/analytics-postgres -- DROP FUNCTION public.hex_to_int(hexval varchar); CREATE OR REPLACE FUNCTION hex_to_int(hexval varchar) RETURNS decimal(38,0) AS $$ DECLARE result int; BEGIN EXECUTE 'SELECT x''' || hexval || '''::int' INTO result; RETURN result; END; $$ LANGUAGE plpgsql IMMUTABLE...
CREATE OR REPLACE FUNCTION ts.inserteventchronology(_analysisunitid integer, _eventid integer, _chroncontrolid integer, _notes character varying DEFAULT NULL::character varying) RETURNS integer LANGUAGE sql AS $function$ INSERT INTO ndb.eventchronology (analysisunitid, eventid, chroncontrolid, notes) VALUES (_ana...
<reponame>ANMillerIII/Utility-LVSM-Classifier CREATE TABLE SPVAT_maintenance AS SELECT * FROM import_mitigation_results_to_db WHERE maintenance_p = 1 OR maintenance = 1; -- Grab records which are maintenance as a mitigation strategy, including from test set
<reponame>robozavri/bettipster<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.4.15.5 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1:3306 -- Generation Time: Sep 14, 2017 at 08:53 PM -- Server version: 5.5.48 -- PHP Version: 7.0.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @...
col SID_Serial format 999999 col SID_Serial format A20 col osuser format A10 col username format A15 col machine format A15 --col logon_time format DATE 'dd-mm-yyyy hh24:mi:ss' -- col osuser format A20 "OSUSER" -- col osuser format A20 "OSUSER" set linesize 9999 set arraysize 999 --select sid||','||serial# "SID_Serial...
BEGIN; UPDATE xplankonverter.mappingtable_gmlas_to_gml SET t_data_type = 'xp_stylesheetliste' WHERE t_data_type = 'xp_stylsheetliste'; UPDATE xplankonverter.mappingtable_gmlas_to_gml SET regel = '(gmlas.stylesheetid_codespace,gmlas.stylesheetid,NULL)::xplan_gml.xp_stylesheetliste AS stylesheetid' WHERE regel = '(gmlas...
-- setup anonymous user (guest) create role guest nologin; grant guest to appyters; -- setup api schema create schema if not exists api; grant all privileges on schema api to appyters; grant usage on schema api to guest;
<gh_stars>0 /* Z_MED_WATER */ truncate table vectiles.z_med_water restart identity; drop index if exists vectiles.sidx__z_med_water; drop index if exists vectiles.ghidx__z_med_water; drop table if exists vectiles_input.tmp_z_med_water; create table vectiles_input.tmp_z_med_water as select * from vectiles.z_m...
delimiter // DROP FUNCTION IF EXISTS get_region_name// CREATE FUNCTION get_region_name( lat DECIMAL(9,6), lon DECIMAL(9,6), type CHAR(1)) RETURNS VARCHAR(255) COMMENT 'Get a name for a location. Type is one of M, S, L, E, H' -- M - "basic" 40-character name -- S - short 32-character name -- L - long 64-charac...
<gh_stars>0 -- ================================================ -- Template generated from Template Explorer using: -- Create Procedure (New Menu).SQL -- -- Use the Specify Values for Template Parameters -- command (Ctrl-Shift-M) to fill in the parameter -- values below. -- -- This block of comments will not be inclu...
-- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 05/09/2016 12:22:12 -- Generated from EDMX file: D:\Projects\RW-PM\Cloud\trunk\RWPMHostedSystem\RWPM\InfloCommon\InfloDb.e...
CREATE TABLE IF NOT EXISTS `__PREFIX__luckydraw_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL COMMENT '用户ID', `username` varchar(255) NOT NULL COMMENT '用户名', `price` varchar(10) NOT NULL COMMENT '奖品名称', `rank` int(11) NOT NULL DEFAULT '0' COMMENT '中奖级别', `status` tinyint(1) NOT NU...
<filename>Sql/01.sql CREATE TABLE [dbo].[ListItem]( [Id] [int] IDENTITY(1,1) NOT NULL, [Name] [nvarchar](100) NOT NULL, [Description] [nvarchar](255) NOT NULL, [CreatedAt] [datetime] NOT NULL, [UpdatedAt] [datetime] NOT NULL, [Status] [varchar](50) NOT NULL CONSTRAINT [PK_ListItem] PRIMARY KEY CLUSTERED ( [Id]...
INSERT INTO profile(profileId,profileActivationToken, profileEmail, profileHash, profileName) VALUES(UNHEX(REPLACE("f6d46fac-c4a0-49c6-bc70-fb0fbeeacb6b", "-", "")), "012345", "<EMAIL>", "67890", "jully"); UPDATE profile SET profileName = "Jullyane" WHERE profileName = "jully"; DELETE FROM profile WHERE profileEmail ...
-- DROP FUNCTION [dbo].[IndexNameClustered] CREATE FUNCTION [dbo].[IndexNameClustered] (@TableId int, @IndexNumber int) Returns nvarchar(200) With EXECUTE as Caller AS Begin DECLARE @ClusteredText nvarchar(200) SELECT @ClusteredText = ClusteredText FROM [dbo].[ToBeProcessedTableIndexes] WHERE TableI...
<filename>db/init/01_roles.sql create role cp_postgraphile login password '<PASSWORD>'; create role cp_anonymous; grant cp_anonymous to cp_postgraphile; create role cp_account; grant cp_account to cp_postgraphile;
<gh_stars>1-10 DROP TABLE IF EXISTS circulation_staff_slips; CREATE TABLE circulation_staff_slips AS SELECT id::varchar(36), jsonb_extract_path_text(jsonb, 'active')::boolean AS active, jsonb_extract_path_text(jsonb, 'description')::varchar(65535) AS description, jsonb_extract_path_text(jsonb, 'name'):...
create unique index IDX_EMAILTEMPLATES_TEMPLATE_BLOCK_UNIQ_NAME on EMAILTEMPLATES_TEMPLATE_BLOCK (NAME) ;
ALTER TABLE auctions ADD transferstatus TEXT DEFAULT '';
<filename>sql/024_add_subject_upload.sql -- -- Add uploaded subject quarantine table and metadata table -- CREATE TABLE "redistricting_subjectupload" ( "id" serial NOT NULL PRIMARY KEY, "processing_filename" varchar(256) NOT NULL, "upload_filename" varchar(256) NOT NULL, "subject_name" varchar(50) NOT N...
select TIMESTAMPDIFF(MINUTE,c.end,b.outTime),e.rate1,TIMESTAMPDIFF(MINUTE,c.end,b.outTime) * e.rate1 'lembur' from ms_attendancewcalcdet a join ms_attendancewcalcactualdetail b on a.date = b.date join ms_attendanceshift c on c.shiftCode = a.shiftCode join ms_personnelhead d on d.id = b.nik join ms_attendanceovertime e ...
CREATE TABLE if not exists gems__rounds ( gro_id_round bigint unsigned not null auto_increment, gro_id_track bigint unsigned not null references gems__tracks (gtr_id_track), gro_id_order int not null default 10, gro_id_survey bigint unsigned not ...
DROP TRIGGER IF EXISTS "set_job_queues_InvitationEmailJob_updated_at" ON "job_queues"."InvitationEmailJob"; ALTER TABLE "job_queues"."InvitationEmailJob" DROP COLUMN "updated_at";
ALTER TABLE orders DROP COLUMN member_itin_id;
update civicrm_custom_group set table_name = replace(table_name, substring(table_name, - locate('_', reverse(table_name))), '') where replace(table_name, substring(table_name, - locate('_', reverse(table_name))), '') IN ( 'civicrm_value_primary_contact', 'civicrm_value_voter_info', 'civicrm_value_core_info', 'civicr...
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE pipes ( id SERIAL PRIMARY KEY, gist TEXT, twitter_token TEXT, twitter_secret TEXT ); -- +goose Down -- SQL section 'Down' is executed when this migration is rolled back DROP TABLE pipes;
<filename>kowalski-sandbox/call-graph.cql MATCH (a:ARTIFACT)-[:DEPENDS_ON]->(l:ARTIFACT) WHERE a.analyzed AND l.groupId = 'org.apache.lucene' AND l.artifactId = 'lucene-core' AND NOT a.groupId = 'org.apache.lucene' WITH a, l LIMIT 1 MATCH p=(a)-[:CONTAINS]->(c:CLASS)-[:IMPLEMENTS]->(:METHOD)-[:INVOKES]->(:METHOD)<-[...
<filename>Administration/EnvironmentInventory/CreatePowerAppTable.sql /****** Object: Table [dbo].[PowerApp] Script Date: 5/21/2019 4:59:38 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[PowerApp]( [appID] [nvarchar](50) NOT NULL, [environmentID] [nvarchar](50) NOT NULL, [formF...
<filename>photon-core/src/test/resources/setup-some-aggregate.sql DROP TABLE IF EXISTS `someaggregate`; DROP TABLE IF EXISTS `someclass`; CREATE TABLE `someaggregate` ( `id` int(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ); CREATE TABLE `someclass` ( `id` int(11) NOT NULL AUTO_INCREMENT, `someAggregateId` int(11...
CREATE OR ALTER TRIGGER dbo.TR_Script_Audit_Insert ON Script AFTER INSERT AS BEGIN INSERT INTO [AUDIT] ( RbacActionId, RbacObjectId, Created, UserId, ObjectId ) SELECT 1 AS 'RbacActionId' ,1 AS 'RbacObjectId' ,GETUTCDATE() AS Created ,INSERTED.CreatedByUserId AS UserId ,INSERTED.ScriptId AS ObjectId FROM ...
CREATE TABLE IF NOT EXISTS public.membership ( id UUID NOT NULL, group_id UUID, person_id UUID, CONSTRAINT membership_pkey PRIMARY KEY (id), CONSTRAINT subject_group_id_fkey FOREIGN KEY (group_id) REFERENCES public.subject (id) ON DELETE CASCADE ON UPDATE CASCADE ...
-- 2017-12-19T10:06:28.142 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AD_Client_ID,IsActive,CreatedBy,IsReport,IsDirectPrint,Value,AccessLevel,ShowHelp,IsBetaFunctionality,IsServerProcess,CopyFromProcess,AD_Process_ID,AllowProcessReRun,IsUseBPartnerLanguage,IsApplySecurity...
--Weather Observation Station 15 --https://www.hackerrank.com/challenges/weather-observation-station-15/problem SELECT ROUND(LONG_W, 4) FROM station WHERE LAT_N = (SELECT MAX(LAT_N) FROM station WHERE LAT_N<137.2345);
Prompt drop TABLE TRWTH; DROP TABLE TLC_ADMIN.TRWTH CASCADE CONSTRAINTS; Prompt Table TRWTH; -- -- TRWTH (Table) -- CREATE TABLE TLC_ADMIN.TRWTH ( U_ID VARCHAR2(20 CHAR) NOT NULL, U_PWD VARCHAR2(20 CHAR) NOT NULL, IS_RGT CHAR(1 CHAR) ...
CREATE TABLE `users` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `url` varchar(255) DEFAULT NULL, `fsq_user_id` varchar(255) DEFAULT NULL, `fsq_access_token` varchar(255) DEFAULT NULL, `fsq_response` text, `micropub_endpoint` varchar(255) DEFAULT NULL, `micropub_access_token` text, `micropub_respon...
CREATE TABLE `jdbc_user` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(50) not NULL, `is_vip` bit(1) not NULL default b'0', `level` int not NULL, `created_by` bigint not NULL, `gmt_create` datetime not NULL, `gmt_modified` ...
CREATE TABLE TEST_ENTITY -- TestEntity (xint1 INTEGER NOT NULL, SOME_VALUE VARCHAR(255), PRIMARY KEY (xint1));
/* * NOTAR */ /* Postgresql >= v8.2 Database: notar DROP DATABASE notar; % createdb -U postgres -O stefan -T template0 -E UTF8 notar or (NOT TESTED !) CREATE ROLE notar CREATEDB LOGIN [ ENCRYPTED ] PASSWORD 'password'; ALTER ROLE notar WITH PASSWORD 'password'; ALTER ROLE notar WITH LOGIN; CREATE DATABASE...
CREATE SCHEMA IF NOT EXISTS system; CREATE TABLE IF NOT EXISTS system.transliterate_to_ascii_rules ( original character varying NOT NULL, transliterate character varying, CONSTRAINT transliterate_to_ascii_rules_pkey PRIMARY KEY (original) ); CREATE OR REPLACE FUNCTION system.transliterate_to_ascii(in_text chara...
<reponame>Zhaojia2019/cubrid-testcases<filename>medium/_02_xtests/cases/cat6.sql autocommit off; call login('dba', '') on class db_user; create class foo06 (fa int, fb int, fc int); create class bar061 under foo06 (ba1 int, bb1 int); create class bar062 under foo06 (ba2 int, bb2 int); create class bar063 under foo06 (...
-- ################################################################################ -- -- New Zealand Geographic Board gazetteer application, -- Crown copyright (c) 2020, Land Information New Zealand on behalf of -- the New Zealand Government. -- -- This file is released under the MIT licence. See the LICENCE file ...
<reponame>RollingSoftware/L2J_HighFive_Hardcore<filename>l2j_datapack/dist/sql/game/updates/20150207update.sql<gh_stars>0 UPDATE character_quests SET name='Q00227_TestOfTheReformer' WHERE name='227_TestOfReformer';
<filename>server/db/22112019_AlterTable.sql ALTER TABLE `orders` ADD `ezidebit_uid` VARCHAR(20) NULL AFTER `order_id`; INSERT INTO `order_status` (`id`, `order_status`) VALUES (NULL, 'Archived');
DROP DATABASE IF EXISTS expense_manager; CREATE DATABASE IF NOT EXISTS expense_manager CHARACTER SET utf8 COLLATE utf8_general_ci; GRANT ALL ON expense_manager.* TO "expense_manager"@"localhost" IDENTIFIED BY "expense_manager"; GRANT ALL ON expense_manager.* TO "expense_manager"@"%" IDENTIFIED BY "expense_manager"; U...
drop database if exists school; create database school; use school; create table user ( id int auto_increment primary key, name varchar(20) not null, email varchar(100) not null, password char(40) not null, type enum('student', 'teacher', 'admin') not null ) engine = InnoDB, charset=utf8; create table class...
ALTER TABLE public.case_hearing_request DROP COLUMN request_timestamp;
<reponame>anirudhbhashyam/911-Calls-Seattle-Predictions -- Reduce dataset to last 7 years SELECT * INTO [dbo].[Seattle_Real_Time_Fire_911_Calls_7_years] FROM [EmergencyCallsDB].[dbo].[Seattle_Real_Time_Fire_911_Calls] WHERE [Datetime] >= DATEADD(YEAR, -7, GETDATE())
SELECT concat(c.FirstName, ' ', c.LastName) AS [CustomerName], c.PhoneNumber, c.Gender FROM Customers c LEFT JOIN Feedbacks f ON c.Id = f.CustomerId WHERE f.Id IS NULL ORDER BY c.Id
CREATE OR REPLACE FUNCTION your_project_id.your_dataset.h3_is_pentagon(h3_index STRING) RETURNS BOOLEAN LANGUAGE js AS """ return h3.h3IsPentagon(h3_index); """ OPTIONS ( library=['gs://file_path'] );
-------------------------------------------------------- -- DDL for Table SUBCATEGORIES -------------------------------------------------------- CREATE TABLE SUBCATEGORIES ( SCT_ID NUMBER(10) CONSTRAINT PK_SUBCATEGORIES PRIMARY KEY, SCT_CAT_ID NUMBER(10) CONSTRAINT NN_SCT_CAT_ID NOT NULL, SCT_NAME ...
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED SET NUMERIC_ROUNDABORT OFF SET ARITHABORT ON IF OBJECT_ID('tempdb..#dep') IS NOT NULL BEGIN DROP TABLE #dep END CREATE TABLE #dep ( Value VARCHAR(1024) NOT NULL, ServiceName VARCHAR(1024) NOT NULL, Data VARCHAR(1024) NULL ) --Get SQL Servi...
<filename>queries.sql /** * Select details for banana with descriptions in Finnish */ SELECT f.id, f.name, f.edible_portion, ft.description AS food_type, pm.description AS processing_method, ig.description AS ingredient_category, fu.description AS food_category, ig2.description AS ingredient_category2, fu2.des...
<filename>function/doi/inds.sql CREATE OR REPLACE FUNCTION doi.inds(dsid integer) RETURNS boolean LANGUAGE sql AS $function$ SELECT COUNT(*) = 1 FROM ndb.datasets AS ds WHERE ds.datasetid = dsid; $function$
/* Formatted on 12-20-2018 9:41:23 AM (QP5 v5.126.903.23003) */ CREATE OR REPLACE FUNCTION ORG.GET_JOB_NAME (P_JOBID NUMBER) RETURN VARCHAR2 AS L_RESULT VARCHAR2 (200 BYTE); BEGIN L_RESULT := ''; SELECT JOB_CODE_NAME INTO L_RESULT FROM ORG.ORG_JOBS WHERE JOB_ID = P_JOBID; RETURN...
<reponame>Shuttl-Tech/antlr_psql -- file:alter_table.sql ln:795 expect:true alter table def_test alter column c1 drop default
<reponame>yevheniiatsiurupa/job4j create table if not exists accounts( phone varchar(100) primary key, name varchar(100) );
<reponame>ahsancse/identity-migration-resources<filename>components/org.wso2.is.migration/migration-resources/5.7.0/dbscripts/step1/identity/db2.sql CREATE TABLE SP_TEMPLATE ( ID INTEGER NOT NULL, TENANT_ID INTEGER NOT NULL, NAME VARCHAR(255) NOT NULL, DESCRIPTION VARCHAR(1023), CONTENT BLOB DEFAULT ...
CREATE TABLE IF NOT EXISTS random_table (i INT, ni INT NULL, f FLOAT, b BOOLEAN, s VARCHAR, d DATE, t TIMESTAMP, a ARRAY(INT)) ENGINE=RANDOM; SELECT COUNT(*) FROM (SELECT * FROM random_table LIMIT 5); SELECT COUNT(*) FROM (SELECT * FROM random_table LIMIT 10); SELECT COUNT(*) FROM (SELECT * FROM random_table LIMIT 1000...
/* MySQL Database : ucar_datalink */ CREATE DATABASE IF NOT EXISTS `ucar_datalink` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE `ucar_datalink`; -- ---------------------------- -- Table structure for `t_dl_group` -- ---------------------------- DROP TABLE IF EXISTS `t_dl_group`; CREATE TABLE `t_dl_group` ( ...
<reponame>ned21/aquilon ALTER TABLE clstr MODIFY (location_constraint_id CONSTRAINT clstr_loc_constr_id_nn NOT NULL); QUIT;
<filename>etl/etl/lk_meas_waveform.sql -- ------------------------------------------------------------------- -- @2020, Odysseus Data Services, Inc. All rights reserved -- MIMIC IV CDM Conversion -- ------------------------------------------------------------------- -- -------------------------------------------------...
-- Database: mariadb -- Change Parameter: tableName=person DROP TABLE person;
INSERT INTO cafe.users (id, user_id, name, email, avatar, tokens) VALUES (1, 1, '<NAME>', '<EMAIL>', 'www.monsters-r-us-profiles.com/mike', '12345'), (2, 2, '<NAME>', '<EMAIL>', 'www.poetsociety.com/emily', '67890'), (3, 3, '<NAME>', '<EMAIL>', 'www.hortonhearsawho.com/seuss', '24680'); INSERT INTO cafe.b...
<filename>login_system.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 03, 2022 at 08:05 AM -- Server version: 10.4.22-MariaDB -- PHP Version: 8.1.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
<filename>back-end/infra/db/prod/initdb.d/load_data.sql -- LOAD DATA INFILE './departments.csv' INTO TABLE departments FIELDS TERMINATED BY ',' (`name`, `priority`);
/* SQLyog Ultimate v11.11 (32 bit) MySQL - 5.6.16 : Database - dbservice ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHEC...
-- Create Database as needed CREATE DATABASE testdb; CREATE TABLE ( );
REM INSERTING into SYS.AUDIT$ SET DEFINE OFF;
<reponame>grazies/Phoenix CREATE TABLE [dbo].[AzureRegionVmSizeMapping]( [Id] [int] IDENTITY (1, 1) NOT NULL, [AzureRegionId] [int] NOT NULL, [VmSizeId] [int] NOT NULL, [AzureSubscriptionId] NVARCHAR(100) NULL, [IsActive] [bit] NOT NULL, CONSTRAINT [PK_AzureRegionVmSizeMapping] PRIMARY KEY CLUSTERED ([Id] ASC...
<gh_stars>1-10 --##1 CREATE TABLE [TestTable]( [Id] [int] IDENTITY(1, 1) PRIMARY KEY, [Name] [nvarchar](250) NOT NULL, [UpdatedDate] [nchar](10) NOT NULL) GO --##2 INSERT INTO [TestTable] ([Name], [UpdatedDate]) VALUES ('Test Item', GETUTCDATE()) GO --##3 DELETE FROM [TestTable] GO --##4 DROP TABLE...
/* Assets: All Servers & Network Devices Basic details of all active servers and devices except for: - Windows workstations - Apple Macs - VMware guests (unless a more specific device type has been set) - Monitors */ Select Top 1000000 tblAssets.AssetID, tblAssets.AssetName, tsysAssetTypes.AssetTy...
<reponame>Shuttl-Tech/antlr_psql -- file:insert_conflict.sql ln:445 expect:true create table selfconflict (f1 int primary key, f2 int)
<filename>schemas/payroll/mssql/up-99-job-2019-12-26-00-00-00-daily-time-entry-except-customer-service.sql use payroll execute p_add_time_entry @employee_id=40, @entry_date='2019-12-26 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=16, @entry_date='2019-12-26 00:00:00', @hours_worked=3 execute p_add...
<reponame>dram/metasfresh -- 2018-03-28T12:38:28.282 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table (AccessLevel,AD_Client_ID,CreatedBy,IsActive,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,ImportTable,IsChangeLog,ReplicationType,EntityType,CopyColumnsFromTable,TableName,Is...
<gh_stars>0 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Table structure for table `stats` -- DROP TABLE IF EXISTS `stats`; CREATE TABLE `stats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `site` varchar(64) NOT NULL DEFAULT '', `page` varchar(255) NOT NULL DEFAULT '0', `ip` varchar(15) NOT NULL DEFAULT '', `use...
CREATE TABLE `bl_scan_info` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `block_num` bigint(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ALTER TABLE `bl_contract_info` ADD INDEX `contract_info_idx_reg_time` (`reg_time` DESC); ; ALTER TABLE `bl_transaction` ADD INDEX `trx_contract_id` ...
<filename>src/data/NCD/Cat1/UrineCulture,Bacterial/UrineCulture,Bacterial.cql library UrineCultureBacterial using FHIR include FHIRHelpers version '1.8' called FHIRHelpers //include otherLibrary version 'x.x' called otherLibrary //codesystem codeSystemName : 'OID' version 'x.x' //valueset valuesetName : 'OID' versio...
/* * PostgreSQL v 13 * Run online: https://www.db-fiddle.com/f/5bXNchkW4D8ffRjMXnE5yR/1 * Read therory: https://www.essentialsql.com/what-is-the-difference-between-an-inner-and-outer-join/ * https://www.diffen.com/difference/Inner_Join_vs_Outer_Join */ CREATE TABLE prices ( row_id serial UNIQUE NOT NULL, p...
<gh_stars>1-10 CREATE KEYSPACE IF NOT EXISTS "_kibana" WITH replication = {'class': 'NetworkTopologyStrategy','DC1':'1'}; CREATE ROLE kibana WITH PASSWORD = '<PASSWORD>' AND LOGIN = true; INSERT INTO elastic_admin.privileges (role,actions,indices) VALUES ('kibana','cluster:monitor/.*','.*'); GRANT CREATE ON KEYSPACE "_...
-- -- Prepare dbSNP for the JOIN. -- -- http://varianttools.sourceforge.net/Annotation/DbSNP -- Multiple alternate alleles sometimes correspond to the same rsid. -- Some variants have multiple rsids. -- dbSNP AS ( SELECT reference_name, start, `end`, reference_bases, -- on the + strand...
<filename>schema/device/animal_device.sql -- -- Name: collar_animal_assignment; Type: TABLE; Schema: bctw; Owner: bctw -- CREATE TABLE bctw.collar_animal_assignment ( assignment_id uuid DEFAULT crypto.gen_random_uuid() NOT NULL, collar_id uuid NOT NULL, critter_id uuid NOT NULL, created_at timestamp wi...