sql
stringlengths
6
1.05M
<filename>upgrade/files/7.3.4-7.3.5/modules/articles/sql.sql DELETE FROM `sys_page_compose` WHERE `Page` = 'articles_single' AND `Func` = 'Info'; INSERT INTO `sys_page_compose` (`Page`, `PageWidth`, `Desc`, `Caption`, `Column`, `Order`, `Func`, `Content`, `DesignBox`, `ColWidth`, `Visible`, `MinWidth`) VALUES ('art...
<filename>CancelMorethan2LamTronCostManager.sql --@E:\GoogleDrive\runall\CancelMorethan2LamTronCostManager.sql UPDATE Applsys.Fnd_Concurrent_Requests SET Status_Code = 'X', Phase_Code = 'C' WHERE Request_Id IN (SELECT t.Request_Id FROM Fnd_Concurrent_Requests t, Applsys.Fnd_Use...
<gh_stars>1-10 /* remove licence id column */ ALTER TABLE water.charge_versions DROP COLUMN licence_id;
-- Driver schema -- !Ups CREATE TABLE driver ( driverId bigInt(20) NOT NULL AUTO_INCREMENT, driverName varchar(255) NOT NULL, longitude DOUBLE NOT NULL, latitude DOUBLE NOT NULL, status varchar(50) NOT NULL, primary key (driverId) ); insert into driver (driverName, longitude, latitude, status)...
select cast('0.00000000000000001' as decimal(18,18)) / cast('1234567890123456789.1234567890123456789' as decimal(38,19)) from data limit 1;
<filename>assembly/src/release/sql/oracle/hedwig-schema.sql -- hedwig Oracle schema -- -- 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...
<reponame>jrharalson/almanac.httparchive.org # standardSQL # Count of preload HTTP Headers with nopush attribute set. Once off stat for last crawl CREATE TEMPORARY FUNCTION extractHTTPHeaders(HTTPheaders STRING, header STRING) RETURNS ARRAY<STRING> LANGUAGE js AS """ try { var headers = JSON.parse(HTTPheaders); //...
<filename>schema/verify/computed_columns/application_operator_name.sql -- Verify ggircs-portal:computed_columns/application_operator_name on pg begin; select pg_get_functiondef('ggircs_portal.application_operator_name(ggircs_portal.application)'::regprocedure); rollback;
MATCH x=(n:GO)--(p1:Protein)--(p2:Protein) WHERE n.Name CONTAINS "serotonin metabolic" RETURN x LIMIT 50 ;
-- This script relates to the issue https://jira.dhis2.org/browse/TECH-703 -- It migrates all necessary data from Event Chart and Event Report tables -- into the new structure of Event Visualization tables. -- Migrate eventchart table into eventvisualization table. INSERT INTO eventvisualization ( -- merged e...
<reponame>tommy-diez/IT202-450<filename>public_html/project/sql/queries/delete_product.sql DELETE FROM Products WHERE id = :id
/* Warnings: - You are about to drop the column `from_person_id` on the `PersonRelation` table. All the data in the column will be lost. - You are about to drop the column `to_person_id` on the `PersonRelation` table. All the data in the column will be lost. - Added the required column `from_id` to the `Person...
create table if not exists leave_request_types( id int primary key not null, created_at timestamp not null, updated_at timestamp not null, deleted_at timestamp, name varchar(50) not null, description varchar(100) not null ); create index index_leave_request_types_id on leave_request_types (id);...
<gh_stars>0 # # TABLE STRUCTURE FOR: admin # DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_id` int(11) NOT NULL, `username` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `temp_password` varchar(250) ...
<reponame>rebet/rebet<gh_stars>0 CREATE DATABASE [rebet];
<reponame>CodiePP/bc2sql -- -- PostgreSQL database dump -- -- Dumped from database version 9.6.6 -- Dumped by pg_dump version 9.6.6 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodie...
<filename>SQL/Basic-Select/revising-the-select-query.sql select * from city where CountryCode='USA' and Population > 100000 ;
CREATE TYPE [dbo].[PullRequestTableType] AS TABLE ( -- Required [Id] BIGINT NOT NULL, [Number] INT NOT NULL PRIMARY KEY CLUSTERED, -- NOT ID (for ordering) [IssueId] BIGINT NULL, -- Filled by the stored procs -- In list and full respo...
CREATE TABLE dynamic_post_child_attachment ( description Nullable(String), image_url Nullable(String), link Nullable(String), place_id Nullable(String), product_id Nullable(String), title Nullable(String) ) ENGINE = Log
USE [SQLMonitor] GO IF OBJECT_ID('[Monitor].[database_users]') IS NOT NULL DROP VIEW [Monitor].[database_users] GO CREATE VIEW [Monitor].[database_users] AS SELECT [ServerName] ,[DatabaseName] ,[PrincipalName] ,[db_accessadmin] ,[db_backupoperator] ,[db_ddladmin] ,[d...
/****** Object: Table [dbo].[MatchResults] Script Date: 22.07.2020 15:33:10 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[MatchResults] ( [Id] INT IDENTITY (1, 1) NOT NULL, [MatchId] VARCHAR (50) NULL, [WhenUtc] DATETIME ...
/* Navicat Premium Data Transfer Source Server : blog-172.16.31.10 Source Server Type : MySQL Source Server Version : 50564 Source Host : 172.16.31.10:3306 Source Schema : blog Target Server Type : MySQL Target Server Version : 50564 File Encoding : 65001 Date: 27/08...
<filename>database/migrations/1599759662546_create_tracks/up.sql<gh_stars>10-100 CREATE TABLE tracks ( value text PRIMARY KEY ); INSERT INTO tracks VALUES ('DS'); INSERT INTO tracks VALUES ('AI'); INSERT INTO tracks VALUES ('WEBDEV'); INSERT INTO tracks VALUES ('UX');
-- github.com/RodneyShag SELECT CITY, STATE FROM STATION;
<reponame>brianherman/data-act-broker-backend<filename>dataactcore/scripts/raw_sql/backfill_awarding_office_names_q12019.sql UPDATE published_award_financial_assistance AS pafa SET awarding_office_name = office.office_name FROM office WHERE pafa.awarding_office_code = office.office_code AND cast_as_date(pafa.action_d...
set define off set sqlblanklines on spool KC-Release-3_0_1-3_1_S1-Upgrade-Oracle-Install.log @ORACLE/SEQUENCES/SEQ_ALL.sql @ORACLE/TABLES/TBL_AWARD.sql @ORACLE/TABLES/TBL_AWARD_CUSTOM_DATA.sql @ORACLE/TABLES/TBL_AWARD_NOTEPAD.sql @ORACLE/TABLES/TBL_AWARD_SYNC_CHANGE.sql @ORACLE/TABLES/TBL_AWARD_SYNC_LOG.sql @ORACLE/T...
<filename>bhs.schema.sql -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Sep 11, 2019 at 02:35 PM -- Server version: 10.3.15-MariaDB-1 -- PHP Version: 7.3.4-2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
CREATE TABLE [dbo].[Sites] ( [CustomerId] INT NOT NULL, [SiteId] INT NOT NULL, [SiteName] NVARCHAR (100) NOT NULL, [Address1] NVARCHAR (50) CONSTRAINT [DF_Sites_Address1] DEFAULT ('') NOT NULL, [Address2] NVARCHAR (50) CONSTRAINT [DF_Sites_Address2] DEFAULT ('') NO...
<gh_stars>1-10 drop index ACT_RU_EXECUTION.ACT_IDX_EXEC_BUSKEY; drop index ACT_RU_TASK.ACT_IDX_TASK_CREATE; drop index ACT_RU_IDENTITYLINK.ACT_IDX_IDENT_LNK_USER; drop index ACT_RU_IDENTITYLINK.ACT_IDX_IDENT_LNK_GROUP; drop index ACT_RU_VARIABLE.ACT_IDX_VARIABLE_TASK_ID; drop index ACT_RU_EVENT_SUBSCR.ACT_IDX_EVENT_SUB...
<filename>project/[PROYEK TINGKA 1] ARTEFAK/40-02_De-Knappe Team-De-Knappe/De_Knappe/db/Database_MySql.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 01, 2017 at 04:06 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET ...
WHENEVER SQLERROR EXIT -1 SET ECHO ON -- Session settings. ALTER SESSION SET NLS_LENGTH_SEMANTICS='CHAR'; -- Define helper procedure to drop views. BEGIN EXECUTE IMMEDIATE 'DROP PROCEDURE drop_view'; EXCEPTION WHEN OTHERS THEN -- If procedure doesn't exist, it can't be dropped, -- so an exce...
DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_schema=current_schema AND table_name = 'dlms_device' AND column_name='use_sn') THEN alter table dlms_device add use_sn boolean not null default false; END IF; IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_sc...
<gh_stars>1-10 /* Warnings: - You are about to drop the `URL` table. If the table is not empty, all the data it contains will be lost. */ -- DropForeignKey ALTER TABLE `Post` DROP FOREIGN KEY `Post_urlId_fkey`; -- DropTable DROP TABLE `URL`; -- CreateTable CREATE TABLE `Url` ( `id` VARCHAR(191) NOT NULL, ...
<reponame>alanfeng99/oracle-db-examples -- -- Create some test tables -- WARNING! Use a test system... -- Tables called T1 and EXCH will be dropped -- set echo on set timing on set linesize 1000 set pagesize 100 set trims on drop table t1 purge; -- -- This is our main application table -- create table t1 (id number(...
<filename>Tellma.Database.Application/bll/Stored Procedures/bll.Lookups_Validate__Delete.sql CREATE PROCEDURE [bll].[Lookups_Validate__Delete] @DefinitionId INT, @Ids [dbo].[IndexedIdList] READONLY, @Top INT = 200, @UserId INT, @IsError BIT OUTPUT AS BEGIN SET NOCOUNT ON; DECLARE @ValidationErrors [dbo].[Valida...
INSERT INTO nutrients (id, name, memo, created_at, updated_at) VALUES (1,'マグネシウム',NULL,'2021-10-17 14:44:27','2021-10-17 14:44:27'); INSERT INTO nutrients (id, name, memo, created_at, updated_at) VALUES (2,'カリウム',NULL,'2021-10-17 14:44:27','2021-10-17 14:44:27'); INSERT INTO nutrients (id, name, memo, created_at, updat...
/* Execute this file from the command line by typing: * mysql -u root < schema.sql * to create the database and the tables.*/ -- create a database for grocery_list app only if it doesn't exist DROP DATABASE IF EXISTS grocery_list; CREATE DATABASE grocery_list; USE grocery_list; -- create a table to store items...
<reponame>keipham/Shopping_website CREATE OR REPLACE PACKAGE BODY SOK_ORDER_UTIL AS /* FUNCTION c_order ** Create order */ FUNCTION c_order( val_user_id IN SOK_ORDER.user_id%TYPE, val_order_status_code IN SOK_ORDER.order_status_code%TYPE) RETURN SOK_ORDER.order_id%TYPE IS loc_order_id SO...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Generation Time: Oct 22, 2021 at 10:40 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
<gh_stars>0 /****** Object: Database [DbDynamix] Script Date: 4/20/2020 8:30:51 PM ******/ CREATE DATABASE [DbDynamix] (EDITION = 'Basic', SERVICE_OBJECTIVE = 'Basic', MAXSIZE = 2 GB) WITH CATALOG_COLLATION = SQL_Latin1_General_CP1_CI_AS; GO ALTER DATABASE [DbDynamix] SET ANSI_NULL_DEFAULT OFF GO ALTER DATABASE...
<reponame>gidsadaporn/Agricultural-services -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 12, 2018 at 02:39 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; ...
<filename>db/seed.sql USE burgers_db; INSERT INTO burgers(burger_name,devoured)VALUES('veg burger',false); INSERT INTO burgers(burger_name,devoured)VALUES('chicken burger',false); INSERT INTO burgers(burger_name,devoured)VALUES('panner burger',false); INSERT INTO burgers(burger_name,devoured)VALUES('beaf burger',false...
<reponame>ucdavis/AD419<filename>FISDatamart/Schema Objects/Schemas/dbo/Views/OrganizationsV.view.sql /****** Script for SelectTopNRows command from SSMS ******/ CREATE VIEW [dbo].[OrganizationsV] AS SELECT DISTINCT Year, Period, Org, Chart, [Level], Name, Type, BeginDate, EndDate, HomeDeptN...
SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO --============================================= -- Copyright (C) 2018 <NAME>, @SQLDoubleG -- All rights reserved. -- -- You may alter this code for your own *non-commercial* purposes. You may -- republish altered code as long as you give due credit. -- -- THIS CODE...
create or replace function f_search_recycling_points(_city varchar, _type RECYCLING_POINT_TYPE_ENUM, _accepts UUID[]) returns table ( id UUID, title varchar, address varchar, working_time varchar, phone varchar, latitude numeric, longitude numeric, site varchar, "type" RECYCLING_POINT_TYPE_ENUM, ad...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 23, 2021 at 12:42 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<filename>database-tools/migrations/001-add-timestamps-to-user.sql ALTER TABLE users ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT current_timestamp(3); ALTER TABLE users ADD COLUMN "lastLoginAt" TIMESTAMP(3) NOT NULL DEFAULT current_timestamp(3);
-- Revert piws:002 from pg BEGIN; -- XXX Add DDLs here. DROP INDEX IX_piws_observation_calendar_id; DROP INDEX IX_piws_observation_time_id; DROP INDEX IX_piws_observation_sensor_id; COMMIT;
INSERT INTO `user` (`id`, `username`, `password`, `registered`, `root`, `active`) VALUES (1, 'test', '$2y$10$yX2aYVewjkhJywP8QIpyvOtFqr8xYIIAh4fIwZkP67DPVKk7WCt6.', '2018-04-23', 1, 1); INSERT INTO `service` ( `price`, `name`, `type`, `description`, `active`, `icon`) VALUES ...
<gh_stars>1-10 # Write your MySQL query statement below select c.Name from Customers c where c.Id not in (select CustomerId from Orders)
-- file:stats.sql ln:135 expect:true INSERT INTO trunc_stats_test4 DEFAULT VALUES
<reponame>Wetwer/movie-score set @user_id = 120; delete from moviesdb.user where user.id = (select @user_id); delete from moviesdb.request where user_id = (select @user_id); delete from moviesdb.comment where user_id = (select @user_id); delete from moviesdb.timeline where user_id = (select @user_id); delete from movi...
<gh_stars>10-100 delete from article where doi !~ '^10.[[:print:]]+/[[:print:]]+$'; delete from article where not (identifier similar to '[a-z0-9_-]+' or identifier ~ '^10.[[:print:]]+/[[:print:]]+$'); alter table article add constraint article_doi_check check (doi ~ '^10.[[:print:]]+/[[:print:]]+$'); update article...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 29, 2018 at 09:11 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>cran/Eunomia INSERT INTO @cohort_database_schema.@cohort_table ( cohort_definition_id, subject_id, cohort_start_date, cohort_end_date ) SELECT CAST(@cohort_definition_id AS INT) AS cohort_definition_id, person_id AS subject_id, MIN(drug_exposure_start_date) AS cohort_start_date, MIN(dru...
<reponame>zhengant/verdictdb select o_orderpriority, count(*) as order_count from orders_scrambled join lineitem_scrambled on l_orderkey = o_orderkey where o_orderdate >= '1992-12-01' and o_orderdate < '1998-12-01' and l_commitdate < l_receiptdate group by o_orderpriority order by ...
SELECT date_trunc('week', order_date) as week_start, status, count(*) as orders_count FROM {{ref('sat_order_details')}} group by date_trunc('week', order_date), status order by week_start
<reponame>TimYagan/stroom ALTER TABLE QUERY DROP FOREIGN KEY QUERY_FK_DASH_ID; ALTER TABLE QUERY DROP INDEX QUERY_FK_DASH_ID; ALTER TABLE QUERY CHANGE COLUMN FK_DASH_ID DASH_ID bigint(20) default NULL; ALTER TABLE QUERY ADD COLUMN QUERY_ID varchar(255) default NULL;
<reponame>sunsiyue/ACMEDB_MAIN -- -- 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, V...
<reponame>mkporwit/quandl use 'wiki_prices'; create or replace table eod ( ticker varchar(5) not null, d date not null, open decimal(13,4) not null, high decimal(13,4) not null, close decimal(13,4) not null, volume decimal(13,4) not null, dividend decimal(13,6) not null, split_ratio deci...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Мар 09 2017 г., 16:59 -- Версия сервера: 5.5.53 -- Версия PHP: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
CREATE TABLE ANSWER ( id bigint NOT NULL, question_id bigint NOT NULL, text varchar(200) NOT NULL, CONSTRAINT answer_pk PRIMARY KEY (id) );
-- Table definitions for the tournament project. -- -- Put your SQL 'create table' statements in this file; also 'create view' -- statements if you choose to use it. -- -- You can write comments in this file by starting them with two dashes, like -- these lines here. -- Create database called tournament DROP DATABASE ...
update qrtz_cron_triggers set cron_expression = '0 0 * ? * *' where trigger_name = 'deallocationJobCron';
<filename>tutorial/main/stepbystep/32-pruningvalues.sql WITH a as (SELECT COUNT(*) as total_rows, SUM(CASE WHEN (es_score>15) THEN 1 ELSE 0 END) as greater_than_threshold FROM es_scores) SELECT total_rows, greater_than_threshold, CAST(greater_than_threshold AS DECIMAL) / total_rows as pct_take...
CREATE DEFINER=`cammymcn_AglAdm`@`%` PROCEDURE `searchNameMaxPrice`(IN search varchar(50), IN price int(7)) BEGIN SELECT DISTINCT c.DRG, c.Average_Total_Payments, c.Total_Discharges, v.Name, v.Street_Address, v.HRR, z.Lattiude, z.Longitude, v.Zipcode FROM ((Procedures AS c JO...
<gh_stars>1-10 /* Problem: https://leetcode.com/problems/exchange-seats/ Submission: https://leetcode.com/submissions/detail/235459441/ */ /* Write your T-SQL query statement below */ SELECT ROW_NUMBER() OVER (ORDER BY (CASE WHEN [Id] % 2 = 0 THEN [Id] - 1 ELSE [Id] + 1 END)) AS [id], [Student] AS [stude...
<reponame>nisancigokmen/web-tests<gh_stars>1-10 SELECT `browser_version`, `browser`, `os_version`, `os`, `ua`, `browserstack` FROM `user_agents`
<reponame>scheltwort-it-services/common_schema -- -- Assume the given text is a list of queries: -- This function calls upon _retokenized_text to parse the queries based on a semicolor -- delimiter and quoting characters as dictated by sql_mode server variable. -- The function recognizes semicolons which may appear w...
<filename>pgsmo/objects/functions/templates_trigger_funcs/pg/+default/get_out_types.sql<gh_stars>10-100 {# # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2017, The pgAdmin Development Team # This software is released under the PostgreSQL Licence #} SELECT format_type(oid, NULL) AS out_arg_type FROM ...
<reponame>PIFSC-NMFS-NOAA/PIFSC-DataValidationModule<gh_stars>0 -------------------------------------------------------- -------------------------------------------------------- --Database Name: Data Validation Module --Database Description: This module was developed to perform systematic data quality control (QC) on a...
<filename>local/vacols/vacols_copy_6_procedure_dev.sql CREATE OR REPLACE PROCEDURE "VACOLS_DEV"."EBENEFITS" ( inssn in varchar2, lname out varchar2, fname out varchar2, appealid out varchar2, status out varchar2, curloc out varchar2 ) is cnum varchar2(10); begin select slogid into cnum from corres where ssn = in...
<gh_stars>0 delete from EN_RULE_RSP_T where RULE_RSP_NM='bhutchinson'; commit;
<filename>modules/registry/release-migration-scripts/0.16-0.17/DeltaScripts/appCatalog_schema_delta.sql -- -- -- 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 owne...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 04, 2018 at 01:09 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
DROP TABLE "freeze"; DROP TYPE FREEZE_STATUS;
<filename>package_2/sql/query/query.sql<gh_stars>1-10 -- 1. Написать запрос получение всех продуктов с типом "СЫР" SELECT * FROM product WHERE type_id = ( SELECT type.id FROM type WHERE name = 'Сыр'); -- 2. Написать запрос получения всех продуктов, у кого в имени есть слово "мороженное SELECT * FROM product WHE...
<gh_stars>1-10 /* $Revision: $ */ /* $Date: $ */ /* Update the jiveVersion table to new definition. */ DROP TABLE jiveVersion; CREATE TABLE jiveVersion ( name NVARCHAR(50) NOT NULL, version INTEGER NOT NULL, CONSTRAINT jiveVersion_pk PRIMARY KEY (name) ); INSERT INTO jiveVersion (name, version)...
<reponame>Carcophan/Jabit<filename>repositories/src/main/resources/db/migration/V1.2__Create_table_message.sql<gh_stars>1-10 CREATE TABLE Message ( id BIGINT AUTO_INCREMENT PRIMARY KEY, iv BINARY(32) UNIQUE, type VARCHAR(20) NOT NULL, send...
<reponame>WDoubleQ/computer<filename>db/computer/jeesite_sys_user_role.sql create table sys_user_role ( user_id varchar(64) not null comment '用户编号', role_id varchar(64) not null comment '角色编号', primary key (user_id, role_id) ) comment '用户-角色' charset = utf8; INSERT INTO jeesite.sys_user_role (user_id, ...
<reponame>khuddlefish/gpdb<filename>gpMgmt/test/behave/mgmt_utils/steps/data/special_chars/drop_special_database.sql DROP DATABASE IF EXISTS " DB`~@#$%^&*()_-+[{]}|\;: \'/?><;1 "; DROP DATABASE IF EXISTS " DB`~@#$%^&*()_-+[{]}|\;: \'/?><;2 ";
<filename>fdb-sql-layer-core/src/test/resources/com/foundationdb/sql/optimizer/rule/pre-operator/group-by-implicit-and-ordered.ddl CREATE INDEX sku_and_date_2 ON customers(items.sku, orders.order_date, orders.oid) USING LEFT JOIN;
<filename>Docs/Schema/SQLite/Tables/tblTableIndex.sql /* // Copyright (c). 2020 <NAME>, MCSD (danielanywhere) // Released for public access under the MIT License. // http://www.opensource.org/licenses/mit-license.php */ DROP TABLE IF EXISTS [TableIndex]; CREATE TABLE [TableIndex] ( [TableIndexID] INTEGER NOT NULL PRI...
<filename>nugraha_jaya.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 04, 2020 at 07:07 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.3.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INTEGER AUTO_INCREMENT NOT NULL, product_name VARCHAR (45) NOT NULL, department_name VARCHAR (45) NOT NULL, price decimal (10,4) NOT NULL, stock_quantity integer(10) NOT NULL, PRIMARY KEY (item_id) ); SELECT * FROM bamazon...
<reponame>arjhaye/CC-grade-and-performance -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 15, 2019 at 09:54 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.1.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; S...
DECLARE @DtBegin datetime = '2017-02-20'; DECLARE @DtEnd datetime = '2017-02-21'; SELECT t.dtStart, AKAR2.FE as AKAR2, AKAR2.QE as AKAR2_Q, KAR30_6.FE as KAR30_6, KAR30_6.QE as KAR30_6_Q, KAR30_7.FE as KAR30_7, KAR30_7.QE as KAR30_7_Q, KAR30_8.FE as KAR30_8, KAR30_8.QE as KAR30_8_Q, TEP1.FE as TEP1, TEP1.QE as...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 22, 2020 at 07:35 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>6e3veR6k/uran-dwh<filename>create-db-scripts/MainWarehouse/Security/Schemas/Stage.sql CREATE SCHEMA [Stage] AUTHORIZATION [dbo] GO
<filename>xyg/SQL/xyg_2020-09-28 11:45:41.sql SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ================================================================= -- Table structure for info_tempering_multiregulation_period -- ================================================================= DROP TABLE IF EXISTS `info_...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 14, 2017 at 01:56 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<reponame>vai0/rma_1 -- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 01, 2015 at 09:30 AM -- Server version: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
/* us-judicial-geography/sql/projection_views.sql */ \set PROJECTION '+proj=laea +lat_0=27 +lon_0=-145' CREATE VIEW us_judicial_geography.judicial_circuit_projected_view AS SELECT ALL ST_Transform(boundary::geometry(MultiPolygon, 96867), :'PROJECTION') AS boundary, judicial_circuit_id, judicial_circuit_n...
CREATE TABLE [dbo].[Sources] ( [ContentItemID] [int] NOT NULL ) ON [PRIMARY] GO ALTER TABLE [dbo].[Sources] ADD CONSTRAINT [PK_Sources] PRIMARY KEY CLUSTERED ([ContentItemID]) ON [PRIMARY] GO GRANT DELETE ON [dbo].[Sources] TO [ssc_webapplication] GO GRANT INSERT ON [dbo].[Sources] TO [ssc_webapplication] GO GRANT S...
<filename>extension/tpcds/dsdgen/queries/95.sql WITH ws_wh AS (SELECT ws1.ws_order_number, ws1.ws_warehouse_sk wh1, ws2.ws_warehouse_sk wh2 FROM web_sales ws1, web_sales ws2 WHERE ws1.ws_order_number = ws2.ws_order_number AND ws1.ws_warehouse_sk <> ws2.ws_warehouse_sk) SELECT co...
WITH t_editor_pubmed_ids AS ( SELECT *, ROW_NUMBER() OVER(PARTITION BY person_id ORDER BY provenance.imported_timestamp DESC) AS person_id_row_number FROM `{project}.{dataset}.mv_data_science_editor_pubmed_ids` ), t_paper_summary AS ( SELECT *, ROW_NUMBER() OVER(PARTITION BY pmid ORDER BY provena...
<filename>src/test/resources/vacuum.test_6.sql<gh_stars>100-1000 -- vacuum.test -- -- execsql { -- BEGIN; -- CREATE TABLE t6 AS SELECT * FROM t1; -- CREATE TABLE t7 AS SELECT * FROM t1; -- COMMIT; -- } BEGIN; CREATE TABLE t6 AS SELECT * FROM t1; CREATE TABLE t7 AS SELECT * FROM t1; COMMIT;
<filename>Stored_Procedure/dbo.sqlg_ParseDiskskpXml.sql USE master; GO IF OBJECT_ID('dbo.sqlg_ParseDiskskpXml') IS NULL EXECUTE sp_executesql N'CREATE PROCEDURE dbo.sqlg_ParseDiskskpXml AS RETURN'; GO SET ANSI_NULLS ON; GO SET QUOTED_IDENTIFIER ON; GO -- ============================================= -- Author: <NA...
with stg_okr__key_result_check_in as ( select * from {{ ref('stg_okr__key_result_check_in') }} ), key_result as ( select * from {{ ref('dim__key_result') }} ), final as ( select stg_okr__key_result_check_in.*, key_result.objective_id as objective_id, key_result.cycle_id as cyc...
<filename>WebContent/sqls/20140427_1606_createArquivo.sql CREATE TABLE `hotel`.`arquivos` ( `id` INT NOT NULL AUTO_INCREMENT, `nome` VARCHAR(255) NOT NULL, `conteudo` LONGBLOB NOT NULL, `contentType` VARCHAR(255) NULL, `dataModificacao` DATETIME NULL, PRIMARY KEY (`id`), UNIQUE INDEX `id_UNIQUE` (`id` ASC...