sql
stringlengths
6
1.05M
-- @testpoint:存储过程非动态语句查询语句 drop table if exists sections_t1; CREATE TABLE sections_t1 ( section NUMBER(4) , section_name VARCHAR2(30), manager_id NUMBER(6), place_id NUMBER(4) ); DECLARE section NUMBER(4) := 280; section_name VARCHAR2(30) := 'Info support'; manager_id N...
<reponame>todorkrastev/softuni-software-engineering USE `diablo`; SELECT `name` FROM `characters` ORDER BY `name` ASC;
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'admin'; GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION; FLUSH PRIVILEGES; ## remote connection - not secure CREATE USER 'admin'@'%' IDENTIFIED BY '<PASSWORD>'; GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES;
<gh_stars>0 INSERT INTO albums (title, artist) VALUES ('Malibu', '<NAME>'), ('A Seat at the Table', 'Solange Knowles'), ('Melodrama', 'Lorde'), ('In Rainbows', 'Radiohead') ; INSERT INTO users (name, email, password) VALUES ('<NAME>', '<EMAIL>', '<PASSWORD>'), ('<NAME>', '<EMAIL>', '<PASSWORD>'), ('<...
CREATE TABLE event ( "event_id" BIGSERIAL PRIMARY KEY, "log_id" BIGINT REFERENCES "log" (log_id) ON DELETE CASCADE UNIQUE NOT NULL, "name" TEXT NOT NULL, "result" JSONB ); CREATE INDEX event_name_idx ON "event" ("name"); -- For indexing: quickly find addresses related to events -- We could do this with JS...
-- DropIndex DROP INDEX "Currency_userId_unique";
--Chiara 27/05/2010 ALTER TABLE SBI_RESOURCES ADD COLUMN RESOURCE_CODE VARCHAR(45); UPDATE SBI_RESOURCES SET RESOURCE_CODE = RESOURCE_NAME; ALTER TABLE SBI_RESOURCES ADD UNIQUE INDEX UNIQUE_RES_CODE (RESOURCE_CODE); ALTER TABLE SBI_RESOURCES MODIFY COLUMN RESOURCE_CODE VARCHAR(45) NOT NULL; --testato
CREATE DEFINER=`root`@`localhost` PROCEDURE `prc_DialStringCodekBulkUpdate`(IN `p_dialstringid` int, IN `p_up_chargecode` int, IN `p_up_description` int, IN `p_up_forbidden` int, IN `p_critearea` int, IN `p_dialstringcode` varchar(500), IN `p_critearea_dialstring` varchar(250), IN `p_critearea_chargecode` varchar(250),...
<reponame>RaniereRamos/SQL-by-Teo -- Some exercises about concepts of episode 01 -- Ex1. Quantos produtos temos da categoria artes? SELECT product_category_name , COUNT (product_id) as quantidade FROM tb_products WHERE product_category_name = 'artes'
<filename>schemas/public/tables/ipv62location.sql -- See instructions in the file "ip2location.sql"
CREATE TABLE book ( id serial primary key, title varchar(255), author varchar(255) );
<filename>09-sql/2745.sql /* URI Online Judge SQL | 2745 Taxes <NAME>ima BR Brasil https://www.urionlinejudge.com.br/judge/en/problems/view/2745 Timelimit: 1 You are going to the International Personal Tax meeting and your proposal is: every individual with income higher than 3000 must pay a tax to the government, wh...
select count(city) - count(distinct city) from station
-- prepares a MySQL server for the project CREATE DATABASE IF NOT EXISTS price_inspector_db; CREATE USER IF NOT EXISTS 'p_inspector_dev'@'localhost' IDENTIFIED BY 'inspector'; GRANT ALL PRIVILEGES ON `price_inspector_db`.* TO 'p_inspector_dev'@'localhost'; GRANT SELECT ON `performance_schema`.* TO 'p_inspector_dev'@'l...
<filename>setup/create_db.sql /** * - Run the following queries to build the DB **/ CREATE TABLE `command_log` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `playfabid` varchar(18) NOT NULL DEFAULT '', `command` varchar(50) NOT NULL DEFAULT '', `created_at` timestamp NULL DEFAULT NULL ON UPDATE current_time...
create domain d_test as int not null;
DROP TABLE IF EXISTS shedlock; CREATE TABLE shedlock( name VARCHAR(64) NOT NULL, lock_until TIMESTAMP(3) NOT NULL, locked_at TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), locked_by VARCHAR(255) NOT NULL, PRIMARY KEY (name) );
<filename>test/fixtures/dialects/exasol/CreateViewStatement.sql<gh_stars>1000+ CREATE VIEW my_view as (select x from t) COMMENT IS 'nice view'; CREATE VIEW my_view (col1 ) as (select x from t); CREATE OR REPLACE FORCE VIEW my_view as select y from t; CREATE OR REPLACE VIEW my_view (col_1 COMMENT IS 'something important...
<filename>use-cases/multiclass-classification/data_preparation.sql /* DISCLAIMER: Please replace <your-amazon-redshift-sagemaker-iam-role-arn> with the IAM role ARN of your Amazon Redshift cluster in the SQL scripts below /* Data Preparation */ CREATE TABLE IF NOT EXISTS ecommerce_sales ( invoiceno VARCHAR(30) ...
/* ---------------------- Case Study 1 Questions ---------------------- */ -- 1. What is the total amount each customer spent at the restaurant? -- 2. How many days has each customer visited the restaurant? -- 3. What was the first item from the menu purchased by each customer? -- 4. What is the most purchase...
<reponame>Gigelf-evo-X/evo-X UPDATE `creature_template` SET `scriptname` = 'npc_creditmarker_visit_with_ancestors' WHERE `entry` IN (18840,18841,18842,18843);
<filename>thirdparty/openldap-2.4.25/servers/slapd/back-sql/rdbms_depend/mysql/backsql_create.sql drop table if exists ldap_oc_mappings; create table ldap_oc_mappings ( id integer unsigned not null primary key auto_increment, name varchar(64) not null, keytbl varchar(64) not null, keycol varchar(64) not null, cre...
<filename>data_prep/vegetation/xx_testing.sql -- ALTER TABLE bushfire.nvis6_bal ADD CONSTRAINT nvis6_bal_pkey PRIMARY KEY (gid, bal_number); -- CREATE INDEX nvis6_bal_bal_number_idx ON bushfire.nvis6_bal USING btree (bal_number); -- CREATE INDEX nvis6_bal_area_idx ON bushfire.nvis6_bal USING btree (area_m2); -- CREA...
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Server version: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE T...
<reponame>itohiro73/reladomo-scala<filename>sample/src/main/resources/reladomo/db_definition/CUSTOMER_ACCOUNT.ddl<gh_stars>10-100 drop table if exists CUSTOMER_ACCOUNT; create table CUSTOMER_ACCOUNT ( ACCOUNT_ID int not null, CUSTOMER_ID int not null, ACCOUNT_NAME varchar(48) not null, ACCOUNT_TYPE var...
<gh_stars>1-10 /****** Object: Table [T_User_Operations] ******/ /****** RowCount: 9 ******/ SET IDENTITY_INSERT [T_User_Operations] ON INSERT INTO [T_User_Operations] (ID, Operation, Operation_Description) VALUES (16,'DMS_Sample_Preparation','Permissions for sample prep operations') INSERT INTO [T_User_Operations...
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS post ( id SERIAL PRIMARY KEY, collection_id INTEGER REFERENCES collection (id), body JSONB, insert_time TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, last_update_time TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP ); GRANT SELECT, INSERT, UPDATE, DELETE ON p...
<reponame>gitSina9468/youliao /* Navicat MySQL Data Transfer Source Server : 公司开发 Source Server Version : 50639 Source Host : 172.16.8.187:3307 Source Database : youliao-security Target Server Type : MYSQL Target Server Version : 50639 File Encoding : 65001 Date: 2020-02-29 13:13:1...
-- Finally update repo_group from repository definition (where it is not yet set from files paths) update gha_events_commits_files ecf set repo_group = r.repo_group from gha_repos r where r.name = ecf.dup_repo_name and r.repo_group is not null and ecf.repo_group is null ;
DROP TABLE users IF EXISTS
SELECT CITY FROM STATION WHERE LEFT(CITY,1) IN('A','E','I','O','U');
<filename>bptp-spt.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 27, 2019 at 03:37 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 06, 2019 at 11:05 AM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 12, 2019 at 02:04 AM -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
SELECT * FROM "user" WHERE email = :username or username = :username;
<reponame>TheAngriestDog/MSSQL-Archive-DDL-Generation CREATE PROCEDURE [dbo].[GenerateHistoryTriggerDDL] @SchemaName NVARCHAR(MAX), @TableName NVARCHAR(MAX), @DDL NVARCHAR(MAX) OUTPUT, @ArchiveSchema NVARCHAR(MAX) = 'Archive' AS BEGIN DECLARE @c_Columns CURSOR; DECLARE @ColumnName NVARCHAR(MAX); DECLARE @DataTy...
<gh_stars>0 select * from prefeitos insert into prefeitos (nome,cidade_id) values ('<NAME>', null), ('<NAME>', null), ('<NAME>', (select id from cidades where nome='Niterói')), ('<NAME>', (select id from cidades where nome='Caruaru'))
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: May 03, 2020 at 10:26 PM -- Server version: 5.7.24 -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
CREATE TABLE IF NOT EXISTS churn_studies.event ( account_id varchar NOT NULL, event_time timestamp(6) without time zone NOT NULL, event_type varchar NOT NULL, product_id integer NOT NULL, additional_data varchar ) WITH (OIDS = FALSE) TABLESPACE pg_default; ALTER TABLE churn_studies.event OWNER ...
<filename>sql/yjbb/603589.sql EXEC [EST].[Proc_yjbb_Ins] @Code = N'603589',@CutoffDate = N'2017-06-30',@EPS = N'0.88',@EPSDeduct = N'0.85',@Revenue = N'17.46亿',@RevenueYoy = N'17.76',@RevenueQoq = N'-30.95',@Profit = N'5.26亿',@ProfitYoy = N'29.87',@ProfiltQoq = N'-39.20',@NAVPerUnit = N'7.4949',@ROE = N'11.79',@CashPer...
UPDATE [live].[Servers] SET [LastPing] = GETDATE() OUTPUT [INSERTED].[LastPing] WHERE [ServerID] = @ServerID;
<reponame>ligana/Ensemble-om-SpringBoot /* Navicat MySQL Data Transfer Source Server : EnsembleOm Source Server Version : 50516 Source Host : 127.0.0.1:3306 Source Database : ensemble Target Server Type : MYSQL Target Server Version : 50516 File Encoding : 65001 Date: 2018-12-27 17...
drop table credit; drop table transfer; drop table user;
<filename>src/test/resources/sql/_unknown/55386c4d.sql -- file:plpgsql.sql ln:315 expect:false if newnslots < oldnslots then delete from HSlot where hubname = hname and slotno > newnslots
<reponame>jemmy00/jsbin ALTER TABLE `owners` ADD COLUMN `summary` VARCHAR(255) NOT NULL DEFAULT ''; ALTER TABLE `owners` ADD COLUMN `html` INTEGER DEFAULT '0'; ALTER TABLE `owners` ADD COLUMN `css` INTEGER DEFAULT '0'; ALTER TABLE `owners` ADD COLUMN `javascript` INTEGER DEFAULT '0';
<filename>core/store/migrate/migrations/0060_combine_keys_tables.sql<gh_stars>1000+ -- +goose Up CREATE TABLE encrypted_key_rings( encrypted_keys jsonb, updated_at timestamptz NOT NULL ); CREATE TABLE eth_key_states( id SERIAL PRIMARY KEY, address bytea UNIQUE NOT NULL, next_nonce bigint NOT NULL DEFAULT 0,...
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current_mysql/5.1.1/dml/KR_DML_01_KCINFR-814_B000.sql<gh_stars>0 DELIMITER / insert into KRCR_NMSPC_T (NMSPC_CD, OBJ_ID, VER_NBR, NM, ACTV_IND, APPL_ID) values ('KC-NTFCN', UUID(), 1, 'KC Notification', 'Y', 'KC') / DELIMITER ;
CREATE OR REPLACE FUNCTION public.load_edges( IN edge_file VARCHAR ) RETURNS VOID AS $$ BEGIN CREATE TABLE IF NOT EXISTS public.edges(src_id INT, dst_id INT) DISTRIBUTED BY (src_id); EXECUTE 'COPY public.edges(src_id, dst_id) FROM ''' || edge_file || ''' WITH csv DELIMITER AS '' '''; CREATE TABLE IF NO...
<filename>modules/core/db/init/hsql/20.create-db.sql<gh_stars>0 -- begin CEOTOCF_ORDER alter table CEOTOCF_ORDER add constraint FK_CEOTOCF_ORDER_ON_DELIVERY_ADDRESS foreign key (DELIVERY_ADDRESS_ID) references CEOTOCF_ADDRESS(ID)^ alter table CEOTOCF_ORDER add constraint FK_CEOTOCF_ORDER_ON_CUSTOMER foreign key (CUSTOM...
drop table tests; / create table tests ( id integer, email varchar2(100), q_nr integer, q_id varchar2(8), a_1 varchar2(8), a_2 varchar2(8), a_3 varchar2(8), a_4 varchar2(8), a_5 varchar2(8), a_6 varchar2(8), a_correct varchar2(1000), a_user varchar2(1000) ...
<gh_stars>1-10 alter table codebase add constraint codebase_tenant_fk foreign key (tenant_name) references edp_specification;
<gh_stars>1-10 CREATE STREAM {APP_PREFIX}_IDENTITY_ENRICHMENT_DATA( "account_id" VARCHAR, "root_account_id" VARCHAR, "display" VARCHAR, "legal" VARCHAR, "riot" VARCHAR, "email" VARCHAR, "twitter" VARCHAR, "judgement_status" VARCHAR, "registrar_index" BIGINT, "created_at" BIGINT, ...
select title, akas, region, account_id from aws.aws_sagemaker_model where arn = 'TestNotFound';
--+ holdcas on; drop table if exists test; create table test (id int , name char(20)); insert into test values(1,'name1'),(2,'name2'),(3,'name3'),(4,'name4'); --good result update test inner join (values(1),(2)) as t(id) on test.id=t.id set test.id=5 ; select * from test order by 1 desc,2 desc; delete from test; i...
<reponame>albertartur/list -- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 26, 2018 at 12:02 AM -- Server version: 10.1.33-MariaDB -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+...
 CREATE VIEW [Production].[vProductAndDescription] WITH SCHEMABINDING AS -- View (indexed or standard) to display products and product descriptions by language. SELECT p.[ProductID] ,p.[Name] ,pm.[Name] AS [ProductModel] ,pmx.[CultureID] ,pd.[Description] FROM [Production].[Product] p ...
<reponame>smcheah/Employee-Tracker<filename>seeds.sql USE employees_db; INSERT INTO department (name) VALUES ("Research and Development"), ("Marketing"); -- ("Customer Support"), -- ("HR"); INSERT INTO role (title, salary, department_id) VALUES ("Software Developer", 80000, 1), ("Applications Man...
DROP TABLE IF EXISTS user; DROP TABLE IF EXISTS room; DROP TABLE IF EXISTS roomSession; CREATE TABLE IF NOT EXISTS user ( id INT AUTO_INCREMENT PRIMARY KEY, streamId VARCHAR(32) NOT NULL UNIQUE, username VARCHAR(255) NOT NULL UNIQUE, password VARCHAR(255) NOT NULL, isGuest BOOLEAN DEFAULT FALSE, timeCreated DATE...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 11, 2019 at 11:54 PM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Июн 06 2017 г., 12:35 -- Версия сервера: 10.1.16-MariaDB -- Версия PHP: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
<filename>sql/ry.sql /* Navicat Premium Data Transfer Source Server : mysql Source Server Type : MySQL Source Server Version : 50717 Source Host : localhost:3306 Source Schema : ry Target Server Type : MySQL Target Server Version : 50717 File Encoding : 65001 Date: 1...
:setvar db "" :setvar pub "" :setvar sub "" :setvar sub_db "" :on error exit :setvar article "" :setvar snapshot_agent "" :setvar cmd "" exec sp_helppublication '$(pub)' GO exec sp_changepublication @publication = N'$(pub)' , @property = N'allow_anonymous' , @value = 'false' GO exec sp_changepublication @publication...
-- phpMyAdmin SQL Dump -- version 4.2.13.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 28, 2015 at 02:38 PM -- Server version: 5.6.25 -- PHP Version: 5.4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 20, 2020 at 05:23 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 5.6.36 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
<reponame>vitajulianii/PEMWEB -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 23, 2019 at 05:28 PM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone =...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th6 10, 2020 lúc 05:24 PM -- Phiên bản máy phục vụ: 10.4.11-MariaDB -- Phiên bản PHP: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+0...
<filename>SPENDING_PHA/20170829/00 - Spring Batch/BATCH_JOB_INSTANCE.sql CREATE TABLE SPENDING_PHA.BATCH_JOB_INSTANCE ( JOB_INSTANCE_ID NUMBER(19) NOT NULL, VERSION NUMBER(19), JOB_NAME VARCHAR2(100 BYTE) NOT NULL, JOB_KEY VARCHAR2(32 BYTE) ...
<reponame>imsunnyjha/hackerank_solutions --github.com/imsunnyjha --Language:MySQL select w.id, p.age, w.coins_needed, w.power from Wands as w join Wands_Property as p on (w.code = p.code) where p.is_evil = 0 and w.coins_needed = (select min(coins_needed) from Wands as w1...
<reponame>edersonlrf/ulbra-ads-bddi-aulas // Exemplo 9: - “Alterando o tipo de dado de um atributo já criado” alter table funcionario modify emailFunc varchar2(100);
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 5.5.54, for debian-linux-gnu (x86_64) -- ------------------------------------------------------ -- Server version 5.5.54-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*...
/* URI Online Judge SQL | 2740 League Marcos Lima BR Brasil https://www.urionlinejudge.com.br/judge/en/problems/view/2740 Timelimit: 1 The International Underground Excavation League is a success between alternative sports, however the staff responsible for organizing the events doesn’t understand computers at all, t...
<filename>data/sql/Unix_TotalAbandonedDomain.sql SELECT LOWER(Accounts.Name) as UserName FROM Accounts LEFT OUTER JOIN OSAccounts ON Accounts.Id = OSAccounts.AccountBase_id LEFT OUTER JOIN Machines ON Accounts.Machine_id = Machines.Id WHERE Accounts.AccountType != 'Local' AND Machines.Platform = 'Nix' AND OSAcc...
-- tkt3357.test -- -- execsql { -- SELECT cc.id, cc.b_id, cc.myvalue, dd.bvalue -- FROM ( -- SELECT DISTINCT a.id, a.b_id, a.myvalue FROM a -- INNER JOIN b ON a.b_id = b.id WHERE b.bvalue = 'btest' -- ) cc -- LEFT OUTER JOIN b dd ON cc.b_id = dd.id -- } SELECT cc.id, cc.b_id, cc.myvalue, d...
-- This SQL is checked in to the git repo at measure_sql/vw__median_price_per_unit.sql. -- Do not make changes directly in BQ! Instead, change the version in the repo and run -- -- ./manage.py create_bq_measure_views WITH prices_per_unit AS ( SELECT month AS date, bnf_code, IEEE_DIVIDE(net_cost,quan...
/* INSERT NEW TRANSACTION INFORMATION */ DROP PROCEDURE IF EXISTS uspCreateNewTransaction; GO CREATE PROCEDURE uspCreateNewTransaction @item_id int, @item_qty int, @customer_face_hash nvarchar(50) AS DECLARE @time_zone nvarchar(50) = 'Pacific Standard Time'; DECLARE @transaction_time datetime = (getutcdate() at t...
<gh_stars>10-100 -- file:polymorphism.sql ln:346 expect:true insert into t values(1,array[111],'c')
# knownTo.sql was originally generated by the autoSql program, which also # generated knownTo.c and knownTo.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #Map known gene to some other id CREATE TABLE knownTo ( name varchar(255) not...
update rdb$triggers set rdb$trigger_inactive = 1 where rdb$trigger_source is not null and ((rdb$system_flag = 0) or (rdb$system_flag is null)); SELECT 'ALTER TABLE ' || C.TABELA || ' ALTER ' || C.COLUNA || ' TYPE VARCHAR(30); ' FROM PCOLUNAS C INNER JOIN rdb$relations r ON r.rdb$re...
<filename>kuwala/core/database/transformer/dbt/macros/poi/get_popularity_in_polygon.sql<gh_stars>0 {% macro get_popularity_in_polygon(result_path, polygon_coords, h3_resolution) %} {% set now = modules.datetime.datetime.now().strftime("%m_%d_%YT%H:%M:%S") %} {% set popularity = sum_by_id('google_poi_popularity'...
DROP TABLE categoria IF EXISTS ; DROP TABLE producto IF EXISTS ; DROP TABLE puntuacion IF EXISTS ; DROP sequence IF EXISTS hibernate_sequence ; CREATE sequence hibernate_sequence start WITH 100 increment BY 1; CREATE TABLE categoria ( id BIGINT NOT NULL, destacada BOOLEAN NOT NULL, imagen VARCHAR(512), nombre VARC...
/****** Object: View [dbo].[V_DatasetArchiveState] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW dbo.V_DatasetArchiveState AS SELECT dbo.V_DatasetArchive.Dataset_Number, dbo.T_DatasetArchiveStateName.DASN_StateName AS State, dbo.V_DatasetArchive.Folder_Name, dbo.V_DatasetAr...
insert into singer (first_name, last_name, birth_date,version) values ('Taylor', 'Swift', '1989-12-13', 0);
CREATE VIEW view19 AS SELECT 1 AS c1 FROM table437 UNION SELECT 1 AS c1 FROM table350 UNION SELECT 1 AS c1 FROM table202 UNION SELECT 1 AS c1 FROM view48 UNION SELECT 1 AS c1 FROM view4 UNION SELECT 1 AS c1 FROM view55; GO
CREATE TABLE [dbo].[Invitations] ( [userId] INT NOT NULL DEFAULT 0 , [scopeId] INT NOT NULL DEFAULT 0, [scope] INT NOT NULL DEFAULT 0, [email] NVARCHAR(64) NOT NULL DEFAULT '', [publickey] VARCHAR(16) NULL , --if the invitation requires a key to authenticate the validity of the invitation [date...
<reponame>jihwahn1018/ovirt-engine SELECT fn_db_add_column('vds_dynamic', 'kernel_features', 'JSONB NULL');
SELECT toInt64(inf); -- { serverError 70 } SELECT toInt128(inf); -- { serverError 70 } SELECT toInt256(inf); -- { serverError 70 } SELECT toInt64(nan); -- { serverError 70 } SELECT toInt128(nan); -- { serverError 70 } SELECT toInt256(nan); -- { serverError 70 } SELECT toUInt64(inf); -- { serverError 70 } SELECT toUInt2...
-- This CLP file was created using DB2LOOK Version 7.2 -- Timestamp: Sun Jul 21 21:48:58 EDT 2002 -- Database Name: MDSETUP -- Database Manager Version: DB2/6000 Version 7.2.3 -- Database Codepage: 819 CONNECT TO MDSETUP; ------------------------------------------------ -- DDL Statements for table ...
<filename>modules/transformations/redshift/sql/ST_CENTERMEAN.sql ---------------------------- -- Copyright (C) 2021 CARTO ---------------------------- CREATE OR REPLACE FUNCTION @@RS_PREFIX@@carto.__CENTERMEAN (geom VARCHAR(MAX)) RETURNS VARCHAR(MAX) STABLE AS $$ from @@RS_PREFIX@@transformationsLib import center_...
INSERT INTO ROLE ( ROLE) VALUES ( 'cashier'); INSERT INTO ROLE ( ROLE) VALUES ( 'director'); INSERT INTO ROLE ( ROLE) VALUES ( 'admin');
<gh_stars>0 mysql> select * from users where user_id = 1 or (select sleep(1)+1);
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Июл 23 2018 г., 10:42 -- Версия сервера: 10.1.34-MariaDB -- Версия PHP: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<reponame>lupiskuelapis/SPPend -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 31, 2021 at 12:59 AM -- Server version: 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_CHAR...
-- -- File generated with SQLiteStudio v3.3.3 on qui. ago. 26 18:22:58 2021 -- -- Text encoding used: UTF-8 -- PRAGMA foreign_keys = off; BEGIN TRANSACTION; -- Table: push_notify CREATE TABLE push_notify ( notifyid INTEGER PRIMARY KEY AUTOINCREMENT, userid INTEGER REFERENCES user (userid) ON DELETE CASCADE ...
INSERT INTO `users` (`username`, `encryptedPassword`, `firstname`, `surname`, `email`, `type`, `activateCode`, `active`, `salt`) values('Chris', '$2y$10$8887bbd64b52f03feb9c8e4TCHYrCuNFoDPamm8/dOnhELYrauJ1m', 'Chris', 'Martin', '<EMAIL>', 'administrator', 12345, true, '8887bbd64b52f03feb9c8f7f2855d390315001ea'); INSER...
<reponame>PRAKASHBOSCO/travel-booking INSERT INTO `gmz_term_relation` (`id`, `term_id`, `post_id`, `post_type`, `created_at`, `updated_at`) VALUES (13, 14, 7, 'car', '2021-01-30 14:07:05', '2021-01-30 14:07:05'), (14, 15, 7, 'car', '2021-01-30 14:07:05', '2021-01-30 14:07:05'), (15, 16, 7, 'car', '2021-01-30 14:07:05',...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 21 Jan 2018 pada 19.02 -- Versi Server: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
<filename>MySQL/May-2019/Subqueries_and_Joins/Exercise/16.Countries_without_any_Mountains.sql SELECT COUNT(*) AS 'country_count' FROM countries AS c LEFT JOIN mountains_countries AS mc ON c.country_code = mc.country_code WHERE mc.country_code IS NULL;
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 06, 2018 at 09:00 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.0.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>mhmdmustafa/jobRing -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 24, 2020 at 06:05 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
<reponame>brunotdantas/Validacoes_SQL_SERVER --------------------------------------------------------------------------------- -- Função : FN_REMOVECHARINVALIDO([STRING]) -- Autor : <NAME> -- Data : 11/12/2017 -- Obj : Remover caracteres especiais para correto fluxo de integração -- ...