sql
stringlengths
6
1.05M
<reponame>cloud-cds/cds-stack drop table if exists clarity_flowsheet; create table clarity_flowsheet ( pat_id text, PAT_ENC_CSN_ID text, FLO_MEAS_NAME text, DISP_NAME text, FLO_MEAS_ID text, ROW_TYPE text, INTAKE_TYPE...
<reponame>runejo/statbus<gh_stars>1-10 /* Table AC would get all top level regions Row header 1 - Activity Categories Top Level Row header 2 - Activity Categories Sub level items Values = Sum of Employees Column headers - Regions */ /* RegionLevel for kyrgyz database: 1 Level : Kyrgyz Republic - ...
CREATE TABLE IF NOT EXISTS IDN_BASE_TABLE ( PRODUCT_NAME VARCHAR (20), PRIMARY KEY (PRODUCT_NAME) ); INSERT INTO IDN_BASE_TABLE values ('WSO2 Identity Server'); CREATE TABLE IF NOT EXISTS IDN_OAUTH_CONSUMER_APPS ( ID INTEGER NOT NULL AUTO_INCREMENT, CONSUMER_KEY VARCHAR...
drop table if exists t1; drop table if exists t2; create table t1 ( col UInt64, x UInt64 MATERIALIZED col + 1 ) Engine = MergeTree order by tuple(); create table t2 ( x UInt64 ) Engine = MergeTree order by tuple(); insert into t1 values (1),(2),(3),(4),(5); insert into t2 values (1),(2),(3),(4),(5); SEL...
<gh_stars>1-10 -- -- Test correlated subquery in subplan with motion chooses correct scan type -- -- Given I have two distributed tables create table choose_seqscan_t1(id1 int,id2 int); create table choose_seqscan_t2(id1 int,id2 int); -- and they have some data insert into choose_seqscan_t1 select i+1,i from generate_s...
<filename>flink-libraries/flink-table/src/test/resources/tpcds/queries-stream/q66.sql SELECT w_warehouse_name, w_warehouse_sq_ft, w_city, w_county, w_state, w_country, ship_carriers, `year`, sum(jan_sales) AS jan_sales, sum(feb_sales) AS feb_sales, sum(mar_sales) AS mar_sales, sum(apr_sales) AS ...
BEGIN; select _v.register_patch( '015-fingerprint-fix', ARRAY[ '014-ooexpl-insert' ], NULL ); UPDATE fingerprint SET "origin_cc"='GB' WHERE "origin_cc"='UK'; COMMIT;
/* Warnings: - A unique constraint covering the columns `[project_logo_id]` on the table `Attachment` will be added. If there are existing duplicate values, this will fail. */ -- CreateIndex CREATE UNIQUE INDEX "Attachment_project_logo_id_key" ON "Attachment"("project_logo_id"); -- AddForeignKey ALTER TABLE "Att...
-- Extra Credit -- need address from patient if in Fullerton -- need perscription name -- need quantity of those with perscription in Fullerton -- medName, address, DELIMITER $$ CREATE PROCEDURE DocOffice.FullertonPersc() BEGIN SELECT COUNT(*), medName FROM DocOffice.TREATMENT tr JOIN DocOffice.PRESCRIPTION pr ON tr....
create sequence hibernate_sequence start with 1 increment by 1; create table vet_specialisations (value varchar(255) not null, primary key (value)); create table veterinarians (id bigint not null, name varchar(255), primary key (id)); create table veterinarians_vet_specialisations (VeterinarianJPA_id bigint not null, s...
CREATE DATABASE IF NOT EXISTS somedatabase; USE somedatabase; CREATE TABLE IF NOT EXISTS sometable ( id int NOT NULL AUTO_INCREMENT, somedata CHAR(240) NOT NULL, PRIMARY KEY (id) ); INSERT INTO somedatabase.sometable SET somedata="some random data from db"; INSERT INTO somedatabase.sometable SET somedata...
<gh_stars>0 insert into links (vidlink, note_id) values ($1, $2) --Entering just a vidlink on mobile -- returning *; --Question: was getting an error about dup pkey on id column
# Config DECLARE LPTokenAddress DEFAULT "0x8ae720a71622e824f576b4a8c03031066548a3b1"; # UNI-V2-ETH/RAI address, lower case only DECLARE DeployDate DEFAULT TIMESTAMP("2021-02-13 12:33:18+00"); # UTC date, Set it to just before the first ever LP token mint DECLARE StartDate DEFAULT TIMESTAMP("2021-02-17...
<filename>database/vertica/examples/migrations/1_init.up.sql CREATE TABLE test ( firstname VARCHAR(16) );
USE demographics IF OBJECT_ID(N'[dbo].[StudentGenderSnapshot]','U') IS NOT NULL DROP TABLE [dbo].[StudentGenderSnapshot] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[StudentGenderSnapshot]( [StudentGenderSnapshotID] [INT] IDENTITY(1,1), [yearID]...
/* JSON ---- JSON es un formato de estructura de datos simple y legible. Es utilizado para transmitir data entre un servidor y una aplicación web, como una alternativa a XML. Las dos partes principales de JSON son llaves y valores. Juntos hacen un par de llave/valor: - Llave: Siempre es una cadena encerrada entre com...
INSERT INTO eg_action (id, name, url, queryparams, parentmodule, ordernumber, displayname, enabled, contextroot, "version", createdby, createddate, lastmodifiedby, lastmodifieddate, application) VALUES (nextval('seq_eg_action'), 'Search And View Religion', '/masters/religion/search/view', NULL, (SELECT id FROM eg_modul...
<filename>Database/Functions/Votes.sql<gh_stars>1-10 /****** Object: User Defined Function dbo.Votes Script Date: 5/1/2004 6:12:44 PM ******/ CREATE FUNCTION dbo.Votes ( @kdID int ) RETURNS tinyint BEGIN RETURN(SELECT COUNT(Vote) FROM Kingdoms WHERE Vote = @kdID) END
<filename>Realization/backend/vs/src/main/resources/eu/bcvsolutions/idm/vs/sql/postgresql/V1_00_004__vs-system-implementers.sql<gh_stars>10-100 -- Remove vs request-implementer and create vs system-implementer DROP TABLE vs_request_implementer; DROP TABLE vs_request_implementer_a; CREATE TABLE vs_system_implementer ...
<filename>src/StockExchange.Migrations/Scripts/170128170443_Removing_VPT_VHF_Strategies.sql<gh_stars>1-10 DELETE FROM [dbo].[StrategyIndicatorProperty] WHERE IndicatorId IN (SELECT Id FROM [dbo].[StrategyIndicator] WHERE IndicatorType = 10 OR IndicatorType = 11) UPDATE [dbo].[Strategy] SET IsDeleted = 1 WHERE I...
<reponame>censusreporter/census-postgres DROP TABLE IF EXISTS dec2020_pl94.P1; CREATE TABLE dec2020_pl94.P1 AS SELECT GEOID, P0010001, P0010002, P0010003, P0010004, P0010005, P0010006, P0010007, P0010008, P0010009, P0010010, P0010011, P0010012, P0010013, P001...
-- Verify seattleflu/schema:shipping/age-bin-v2 on pg begin; select pg_catalog.has_table_privilege('shipping.age_bin_fine_v2', 'select'); select pg_catalog.has_table_privilege('shipping.age_bin_coarse_v2', 'select'); rollback;
<filename>src/test/resources/sql/select/a05d8c5a.sql -- file:rules.sql ln:984 expect:true select pg_get_viewdef('shoe'::regclass) as unpretty
-- file:matview.sql ln:236 expect:true SELECT * FROM mvtest1
<reponame>rahulbelokar/mikepetrak SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO /* Description: if @@argDatabaseName parameter is null returns cache size and buffer count For each database else return objects in the buffer cache for given database */ CREATE OR ALTER PROCEDURE [dbo].[spReport_Buffer_Cache] ...
<gh_stars>0 SET graph_path = Road_network; \timing SELECT time, coordinates INTO TEMPORARY TABLE eqk_x FROM earthquake WHERE earthquake_id=41862; WITH A AS ( SELECT gps.gps_id, gps.coordinates FROM gps, eqk_x WHERE gps.time >= eqk_X.time AND gps.time < eqk_X.time + interval '1 hour' AND ST_DWithin(gps.coordin...
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5514520_sys_gh4996-dataentry-window-section.sql -- 2019-03-02T16:10:58.033 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Sec...
<reponame>IT20029586/online-library-management-system-<filename>Src/it21436680/publisher/RegularUser.sql CREATE DATABASE online_library; CREATE TABLE regular_user ( Frist_Name varchar(200) NOT NULL, Last_Name varchar(200) NOT NULL, Email varchar(200) NOT NULL DEFAULT <EMAIL>', Password varchar(12) DEFAULT NULL...
<reponame>eanderson-ei/nv-admin<gh_stars>0 INSERT INTO projected_ls ( map_unit_id, ls_breed, ls_summer, ls_winter) VALUES(?,?,?,?)
<filename>queries/q6_a.sql /* Afternoon */ select count(street) as count, street from orders as o, locations as l where o.location_pickup = l.gps and date_from :: time >= '12:00:00' AND date_from :: time < '14:00:00' group by l.street order by count desc limit 3;
<filename>sample-validation/4020-CreateTableValueFunctions.sql -- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more i...
<gh_stars>1-10 BEGIN; CREATE TABLE lsif_nearest_uploads ( repository_id integer NOT NULL, "commit" text NOT NULL, upload_id integer NOT NULL, distance integer NOT NULL ); CREATE TABLE lsif_uploads_visible_at_tip ( repository_id integer NOT NULL, upload_id integer NOT NULL ); CREATE TABLE lsif...
<filename>posda/posdatools/queries/sql/ListOfPublicDispositionTables.sql -- Name: ListOfPublicDispositionTables -- Schema: posda_phi -- Columns: ['sop_class_uid', 'name', 'count'] -- Args: [] -- Tags: ['NotInteractive', 'ElementDisposition'] -- Description: Get List of Public Disposition Tables select distinct sop_c...
create index l_orderkey_100_lt10_idx on lineitem (l_orderkey*100 asc nulls first) where l_orderkey*100 > 10;
<reponame>WeAreChampion/notes --hive dynamic partition settings --默认值:false;是否开启动态分区功能,默认false关闭。 set hive.exec.dynamic.partition=true; --动态分区的模式,默认strict,表示必须指定至少一个分区为静态分区,nonstrict模式表示允许所有的分区字段都可以使用动态分区。一般需要设置为nonstrict set hive.exec.dynamic.partition.mode=nonstrict; --默认值:100,在每个执行MR的节点上,最大可以创建多少个动态分区。 set hive.ex...
<filename>sayn/database/templates/create_table.sql {%- if not replace %} CREATE TABLE IF NOT EXISTS {{ full_name }} {%- elif replace and can_replace_table %} {%- if table_exists %} CREATE OR REPLACE TABLE {{ full_name }} {%- elif view_exists %} DROP VIEW IF EXISTS {{ full_name }}{{ ' CASCADE' if needs_cascade else ''}}...
<reponame>archzi/druid<gh_stars>100-1000 select * from employees x where salary > (select avg(salary) from x) and 1 = 1 and hiredate = sysdate and to_yminterval('01-00') < sysdate and to_yminterval('01-00') + x < sysdate or a=b and d=e
\c gptest; -- @description : Create AO tables , with indexes, with and without compression -- @author : <NAME> -- Create heap tables --start_ignore DROP TABLE if exists sto_ao1; set time zone PST8PDT; --end_ignore CREATE TABLE sto_ao1( col_text text, col_numeric numeric, col_unq int ...
<filename>corpus/sqlclean/training/SQLErrorLogs_queries.sql<gh_stars>100-1000 -- remove duplicates from SQLErrorLogs table SELECT * FROM SQLErrorLogs a JOIN ( SELECT ServerName , Date , spid , Message , max(seq_num) AS max_seq_num FROM ...
<filename>preprocess/load_data/ddl/ddl_reserve.sql -- 作成するテーブルの名前をwork.reserve_tbとして指定 CREATE TABLE work.reserve_tb ( -- reserve_idの列を設定(データ型は文字列、NULL値をとらない制約を追加) reserve_id TEXT NOT NULL, -- hotel_idの列を設定(データ型は文字列、NULL値をとらない制約を追加) hotel_id TEXT NOT NULL, -- customer_idの列を設定(データ型は文字列、NULL値をとらない制約を追加) cust...
<gh_stars>1000+ create or replace function update(queries text default '') returns jsonb as $$ DECLARE r "World"%ROWTYPE; j jsonb := jsonb_build_array(); new_rnd int; rnd_id int; count int; BEGIN SET TRANSACTION READ WRITE; IF queries ~ '^[1-9]\d{0,2}$' THEN count := CAST(queries as int); ...
-- @testpoint: 存储过程中使用游标 drop table if exists emp; create table emp(empno int,ename varchar(10),job varchar(10) ,sal integer); insert into emp values(1,'zhangsan','doctor1',10000),(2,'zhangsan2','doctor2',10000),(123,'zhangsan3','doctor3',10000); insert into emp values(1,'zhansi','doctor1',10000),(2,'lisiabc','doctor2...
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 27, 2014 at 04:30 PM -- Server version: 5.5.40-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` bigint NOT NULL, `fname` varchar(255) NOT NULL, `lname` varchar(255) NOT NULL, `email` varchar(400) NOT NULL, `pass` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; ALTER TABLE `user` ADD PRIMARY KEY (`id`), ...
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 24-Jul-2021 às 18:21 -- Versão do servidor: 10.1.34-MariaDB -- PHP Version: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>nabeelkhan/Oracle-DBA-Life ------------------------------------------------------------------------------- -- -- Script: fixed_view_text.sql -- Purpose: to extract the view text for the V$ views -- -- Copyright: (c) Ixora Pty Ltd -- Author: <NAME> -- -----------------------------------------------------------...
-- Migrationscript from release server version 0.16 to 0.17 DELETE FROM scim_extension_field_value WHERE value IS NULL OR value = ''; ALTER TABLE ONLY scim_extension_field ADD CONSTRAINT uk_9rvm7w04q503y4gx9q0c55cnv UNIQUE (extension_internal_id, name); CREATE INDEX uk_1b0o2foyw6nainc2vrssxkok0 ON scim_meta USIN...
/* // Copyright (c). 2020 <NAME>, MCSD (danielanywhere) // Released for public access under the MIT License. // http://www.opensource.org/licenses/mit-license.php */ SELECT CatalogItem.CatalogItemID, CatalogItem.CatalogItemTicket, CatalogItem.DepartmentItemID, CatalogItem.UserItemID, CatalogItem.DateCreated, CatalogIte...
-- phpMyAdmin SQL Dump -- version 4.6.6deb4 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 20-11-2017 a las 22:14:14 -- Versión del servidor: 10.1.26-MariaDB-0+deb9u1 -- Versión de PHP: 7.0.19-1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- MySQL dump 10.14 Distrib 5.5.57-MariaDB, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: gitinsightsdb -- ------------------------------------------------------ -- Server version 5.5.57-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT...
-- phpMyAdmin SQL Dump -- version 4.4.10 -- http://www.phpmyadmin.net -- -- Host: localhost:8889 -- Erstellungszeit: 10. Sep 2016 um 09:25 -- Server-Version: 5.5.42 -- PHP-Version: 7.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Datenbank: `coder` -- -- ---------------------------------...
<gh_stars>1-10 truncate table customers; truncate table customers_contacts; truncate table customers_files; truncate table customers_notes; truncate table customers_reminders; truncate table customers_reminders_employees; truncate table customers_systems; truncate table departments; truncate table departments_employees...
------------------------------------------------------------------------------ --ADTAX eg_feature-- ------------------------------------------------------------------------------ ------------------------ Legacy ----------------- INSERT INTO eg_feature(ID,NAME,DESCRIPTION,MODULE) VALUES (NEXTVAL('seq_eg_feature'),'C...
create table files ( id int(10) unsigned auto_increment primary key, paste_id int(10) unsigned not null, filename varchar(255) null, content mediumblob not null ) ; create index files_paste_id_index on files (paste_id) ; create table pastes ( id int(10) unsigned not null primary key, title varchar(255) nul...
/* Navicat MySQL Data Transfer Source Server : Mysql Source Server Version : 50717 Source Host : localhost:3306 Source Database : j2ee Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2020-05-27 22:30:56 */ SET FOREIGN_KEY_CHECKS=0; -- --------...
<reponame>ccreater222/mini_blog -- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.6.50 - MySQL Community Server (GPL) -- 服务器操作系统: Linux -- HeidiSQL 版本: 11.0.0.5919 -- ----------------------...
<filename>hrwhisper/season2/create_table/4 test_fix_mssing.sql<gh_stars>10-100 --- 和hr_train_wifi_count_top join就是取wifi的top 1000,hr_test_wifi3_temp DROP TABLE if exists hr_test_wifi3_temp; CREATE TABLE hr_test_wifi3_temp AS SELECT a.row_id, a.wifi_bssid, a.strong FROM hr_test_wifi_temp a JOIN hr_train_wifi_count_top b ...
-- For HMAC and pgp_sym_encrypt create extension if not exists pgcrypto; -- Table create table passwords ( password_id bytea not null, password_expires timestamp without time zone not null, password_data bytea not null, constraint passwords_pkey primary key (password_id), constraint password_id_len...
-- cleanup DROP TYPE "T_DATA"; DROP TYPE "T_PARAMS"; DROP TYPE "T_RESULTS"; DROP TYPE "T_CENTERS"; DROP TYPE "T_ERRORS"; DROP TABLE "SIGNATURE"; CALL "SYS"."AFLLANG_WRAPPER_PROCEDURE_DROP"('DEVUSER', 'P_KMEDIANS'); DROP VIEW "V_DATA"; DROP TABLE "RESULTS"; DROP TABLE "CENTERS"; DROP TABLE "ERRORS"; DROP PRO...
CREATE EXTERNAL TABLE [fhir].[MedicinalProductInteraction] ( [resourceType] NVARCHAR(4000), [id] VARCHAR(64), [meta.id] NVARCHAR(4000), [meta.extension] NVARCHAR(MAX), [meta.versionId] VARCHAR(64), [meta.lastUpdated] VARCHAR(30), [meta.source] VARCHAR(256), [meta.profile] VARCHAR(MAX), ...
DROP DATABASE IF EXISTS employee_tracker_db; CREATE DATABASE employee_tracker_db; USE employee_tracker_db; CREATE TABLE employee ( id INT NOT NULL AUTO_INCREMENT, fName VARCHAR(40) NOT NULL, lName VARCHAR(40) NOT NULL, title VARCHAR(30), dept_id INT, role_id INT, PRIMARY KEY (id) ); CREATE TABLE departme...
<gh_stars>0 DROP DATABASE IF EXISTS mvcTechBlogDB CREATE DATABASE mvcTechBlogDB
insert into code_category_values (code_category_id, concept_dbid) SELECT distinct 12, s.dbid-- , s.id, s.name, p2.id, p2.name, i.id, i.name, p.id, p.name, c.id, c.name FROM concept c -- Source SNOMED concept JOIN concept p ON p.id = 'SN_116680003' -- "Is A" relationship (child of code) JO...
<gh_stars>1-10 use mservice; DROP TABLE IF EXISTS tb_AccountRoleMap; -- MService account user to role map CREATE TABLE tb_AccountRoleMap ( -- unique identifier for an MService account user inbUserId BIGINT NOT NULL, -- unique identifier for an MService account role inbRoleId BIGINT NOT NULL, -- c...
<reponame>henryoforeh-aot/SIMS ALTER TABLE sims.applications ADD COLUMN IF NOT EXISTS application_status sims.application_status; COMMENT ON COLUMN sims.applications.application_status IS 'Status information of the student application (Example: Draft, In Progress, Assessment, Enrollment, Completed, Cancelled, Submitte...
<filename>db/src/main/resources/sql/flyway/V59__use_composite_primary_key_for_contact_and_host_history_table.sql<gh_stars>1000+ -- Copyright 2020 The Nomulus Authors. All Rights Reserved. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the Lic...
<reponame>kanish671/goalert -- +migrate Up CREATE TYPE enum_switchover_state as ENUM ( 'idle', 'in_progress', 'use_next_db' ); CREATE TABLE switchover_state ( ok BOOL PRIMARY KEY, current_state enum_switchover_state NOT NULL, CHECK(ok) ); INSERT INTO switchover_state (ok, current_state) VALUE...
<gh_stars>1000+ ALTER TABLE "identities" ADD COLUMN "state" VARCHAR (255) NOT NULL DEFAULT 'active';
<reponame>lukaslihotzki/synapse /* Copyright 2020 The Matrix.org Foundation C.I.C * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * *...
<reponame>zhangh43/gpdb<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/vacuum/reindex/concurrency/sql/vacuum_while_reindex_aoco_gist.sql<gh_stars>1-10 -- @Description Ensures that a vacuum during reindex operations on GiST index is ok -- DELETE FROM reindex_aoco_gist WHERE id < 128; 1: BEGIN; 1: REINDEX inde...
INSERT INTO `orders` (`id`, `id_client`, `folio_order`, `number_labels`, `date`) VALUES (1, 1, 'CSC001', '5', '2017-02-27 00:00:00'), (2, 2, 'JCM002', '5', '2017-02-28 00:00:00');
<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.19, for Linux (x86_64) -- -- Host: localhost Database: connectme -- ------------------------------------------------------ -- Server version 5.7.19-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 22, 2022 at 07:32 AM -- Server version: 10.4.22-MariaDB -- PHP Version: 7.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<gh_stars>1-10 set define '&' verify off feed off serveroutput on size unlimited prompt Installing Relational Data Browser App prompt ====================================== accept WORKSPACE_NAME CHAR prompt "Enter the apex workspace name " accept SCHEMA_NAME CHAR prompt "Enter the application schema name " accept APPL...
--+ holdcas on; set names utf8; CREATE TABLE test_jp ( sh1 short, i1 int, b1 bigint, n1 numeric, f1 float, d1 double, m1 monetary); insert into test_jp values (193, 193,193,193,193,193,193); select chr(sh1), chr(i1), chr (b1), chr(n1) , chr (f1), chr (d1), chr (m1) from test_jp; drop table test_jp; set names iso8859...
<filename>frontend/database/00177_add_foreign_key_teams_table.sql ALTER TABLE `Teams` ADD COLUMN `team_group_id` int NOT NULL COMMENT 'Id del grupo de equipos' AFTER `team_id`, ADD KEY `team_group_id` (`team_group_id`), ADD CONSTRAINT `fk_ttg_team_group_id` FOREIGN KEY (`team_group_id`) REFERENCES `Team_Gro...
-- @testpoint:opengauss关键字shutdown(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists shutdown; CREATE TABLESPACE shutdown RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace shutdown; --关键字带双引号,创建成功 drop tablespace if exists "shutdown"; CREATE TABLESPACE "shutdown" RELATIVE LOCATION 'hdfs_tab...
<filename>contrib/hawq-hadoop/hawq-mapreduce-tool/test-data/test_ao_types_bit5/test_ao_types_bit5.sql<gh_stars>100-1000 DROP TABLE IF EXISTS test_ao_types_bit5; CREATE TABLE test_ao_types_bit5 (c0 bit(5)) with (appendonly=true, orientation=row, compresstype=none, blocksize=32768, checksum=false, compresslevel=0); INSER...
<filename>dbMaint/test/undoManualInputs.sql alter table FloatResultManual drop valueString; alter table InputPattern drop index ix135; alter table InputPattern drop name;
CREATE DATABASE `jilton` /*!40100 DEFAULT CHARACTER SET latin1 */; CREATE TABLE `jilton_class` ( `idClass` int(11) NOT NULL AUTO_INCREMENT, `roomClass` varchar(45) DEFAULT NULL, `priceMulti` float NOT NULL DEFAULT '1', PRIMARY KEY (`idClass`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=latin1; CREATE TAB...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Erstellungszeit: 09. Mai 2019 um 18:51 -- 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...
CREATE DATABASE IF NOT EXISTS `llmm_main` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `llmm_main`; -- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86) -- -- Host: localhost Database: llmm_main -- ------------------------------------------------------ -- Server version 5.6.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
<reponame>cverasteguig/Publico /*1*/ CREATE TABLESPACE TBS_COMERCIAL DATAFILE 'C:\PRACTICA\DF_COMERCIAL_01.DBF' SIZE 15M; CREATE TABLESPACE TBS_FINANZAS DATAFILE 'C:\PRACTICA\DF_FINANZAS_01.DBF' SIZE 10M; ALTER TABLESPACE TBS_FINANZAS ADD DATAFILE 'C:\PRACTICA\DF_FINANZAS_02.DBF' SIZE 10M; CREATE TABLES...
<reponame>kellyav/bank_transactions /* Sceario: Count how many accounts have more than $50,000. This is an important result, so we want to avoid reading data modified by other transactions that haven't been committed or rolled back yet. (AKA prevents dirty reads) */ SET TRANSACTION ISOLATION LEVEL READ COMMITTED; ...
<filename>basic/1-primeNumber.sql set serveroutput on set verify off declare a number; flag number:=0; begin a := &a; for i in 2..(a/2) loop if (mod(a,i)=0) then flag :=1; --break; end if; end loop; if (flag = 0) then dbms_output.put_line('No entered is Prime'); else dbms_output.put_line('No entered is NOT Not Prime...
<filename>tiendas.sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 19-03-2017 a las 01:56:06 -- Versión del servidor: 10.1.13-MariaDB -- Versión de PHP: 5.6.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OL...
<gh_stars>0 CREATE DATABASE IF NOT EXISTS t_money_transfer;
-- -*-Sql-*- mode (to keep my emacs happy) -- -- API Package Body for Term_Assoc. -- -- Scaffold auto-generated by gen-api.pl. gen-api.pl is -- Copyright 2002-2003 Genomics Institute of the Novartis Research Foundation -- Copyright 2002-2008 <NAME> -- -- This file is part of BioSQL. -- -- BioSQL is free software: yo...
-- -- sigplus Image Gallery Plus plug-in for Joomla -- Copyright (C) 2009-2017 <NAME>. All rights reserved. -- Licensed under GNU/GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html -- http://hunyadi.info.hu/sigplus -- DROP TABLE IF EXISTS `#__sigplus_data`, `#__sigplus_imageview`, `#__sigplus_caption`, `#__sigplu...
-- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 07/29/2014 09:40:52 -- Generated from EDMX file: E:\Projects\Geografija\GeoGrafija\Model\GeoGrafijaModel.edmx -- ---------...
<gh_stars>0 USE [AIDE] GO /****** Object: StoredProcedure [dbo].[sp_GetAttendanceToday] Script Date: 5/29/2020 6:27:52 PM ******/ DROP PROCEDURE [dbo].[sp_GetAttendanceToday] GO /****** Object: StoredProcedure [dbo].[sp_GetAttendanceToday] Script Date: 5/29/2020 6:27:52 PM ******/ SET ANSI_NULLS ON GO SET QU...
SELECT t2.nama_produk, t2.harga FROM ms_produk t2;
<filename>update-v_0.1.sql ALTER TABLE files ADD is_private BOOLEAN; UPDATE files SET is_private = false;
create database `userdb`; use userdb; create table `user`( `username` varchar(100) NOT NULL, `userid` varchar(100) NOT NULL, `emailid` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, PRIMARY KEY(`userid`) );
<filename>sql/queries/users/list_by_university.sql SELECT COUNT(*) OVER()::NUMERIC AS full_count, _user.user_id, _user.created, _user.updated, _user.email_address, _user.title, _user.first_name, _user.last_name, _user.blocked, institute.institute_id, institute.institute_name,...
SELECT COUNT(*) as totalpairs, SUM(y_true) as totalmatches, SUM(y_true)/COUNT(*) as pctage FROM cluster_output; SELECT COUNT(*) as n_samples, SUM(y_true)/COUNT(*) as pct, AVG(avg_score) as avg_score, y_cluster FROM cluster_output GROUP BY y_cluster ORDER BY avg_score D...
-- Made by @MERZAK-X and @Yassine-Ag SHOW PARAMETER CONTROL_FILES; ACCEPT ctrlFile char prompt '[+] Enter existing source control file (.CTL) path : ' ACCEPT ctrlFileCopy char prompt '[+] Enter NEW control file (.CTL) path : ' SELECT '&ctrlFile' || '==>' || '&ctrlFileCopy' FROM DUAL; prompt ##################### UPDA...
-- script to develop discoverx networks -- 3/4/2018 -- Author: <NAME> -- Pubmed keyword for "DiscoverX" DROP TABLE IF EXISTS disc_pubmed_search; CREATE TABLE disc_pubmed_search(pmid int); \COPY disc_pubmed_search FROM '~/ERNIE/Analysis/discoverx/discoverx.csv' CSV DELIMITER ','; -- Pubmed PI search DROP TABLE IF EXI...
ALTER PROCEDURE [dw].[p_lataa_d_liikkuvuusohjelma] AS if not exists (select * from dw.d_liikkuvuusohjelma where id=-1) begin set identity_insert dw.d_liikkuvuusohjelma on; insert into dw.d_liikkuvuusohjelma ( id, liikkuvuusohjelma_koodi, liikkuvuusohjelma_fi, liikkuvuusohjelma_sv, liikkuvuusohje...
-- ---------------------------------------------------------------------------------------------------------------- -- Generated by LLBLGen Pro v4.2 Build: December 4th, 2014 -- SQL Server 2000/2005/2008/2008R2/2012/Express DDL Script generated from project: WriteTests -- Project filename: LinqToSQL2\tests\SourceProj...