text stringlengths 1 1.05M |
|---|
# tz zone descriptions (deprecated version)
#
# This file is in the public domain, so clarified as of
# 2009-05-17 by Arthur David Olson.
#
# From Paul Eggert (2014-07-31):
# This file is intended as a backward-compatibility aid for older programs.
# New programs should use zone1970.tab. This file is like zone1970.tab... |
USE [WideWorldImportersDW]
GO
ALTER DATABASE CURRENT SET COMPATIBILITY_LEVEL = 140
GO
EXEC sp_executesql
N'SELECT [fo].[Order Key], [si].[Lead Time Days], [fo].[Quantity]
FROM [Fact].[Order] AS [fo]
INNER JOIN [Dimension].[Stock Item] AS [si]
ON [fo].[Stock Item Key] = [si].[Stock Item Key]
WHERE [fo].[Q... |
CREATE TABLE IF NOT EXISTS pluginkeyvaluestore (
pluginid VARCHAR(190) NOT NULL,
pkey VARCHAR(50) NOT NULL,
pvalue bytea,
PRIMARY KEY (pluginid, pkey)
);
ALTER TABLE pluginkeyvaluestore ADD COLUMN IF NOT EXISTS expireat bigint DEFAULT 0;
DO $$BEGIN
IF (
SELECT column_default::bigint
... |
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 08-11-2017 a las 23:42:52
-- Versión del servidor: 10.1.21-MariaDB
-- Versión de PHP: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CL... |
CREATE PROCEDURE [dbo].[spCustomers_GetAll]
AS
BEGIN
SET NOCOUNT ON;
SELECT [CustomerId], [FirstName], [LastName], [FullName], [Address], [Phone], [Email], [PayCentreId], [UploadReceipts]
FROM [dbo].[Customers]
END
|
-- menu admin
UPDATE `sys_menu_admin` SET `name` = 'Custom RSS', `title` = '_crss_ami_custom_rss', `icon` = 'rss' WHERE `name` = 'Custom RSS Moderation';
-- page biulder
DELETE FROM `sys_page_compose` WHERE `Page` = 'profile' AND `Desc` = 'Custom RSS block';
SET @PageKey1 = (SELECT MAX(`order`) FROM `sys_... |
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64)
--
-- Host: localhost Database: db_proyecto
-- ------------------------------------------------------
-- Server version 5.7.33-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS... |
ALTER TABLE "public"."users" ALTER COLUMN "username" DROP NOT NULL;
|
CREATE OR REPLACE VIEW OSP$BUDGET_JUSTIFICATION ( PROPOSAL_NUMBER, VERSION_NUMBER, BUDGET_JUSTIFICATION, UPDATE_TIMESTAMP, UPDATE_USER )
AS select null,null,null,null,null
from dual;
|
WITH source AS (
SELECT *
FROM {{ source('gitlab_dotcom', 'todos') }}
QUALIFY ROW_NUMBER() OVER (PARTITION BY id ORDER BY _uploaded_at DESC) = 1
), renamed AS (
SELECT
id::NUMBER AS todo_id,
user_id::NUMBER AS user_id,
project_id::NUMBER AS project_id,
targe... |
CREATE DATABASE IF NOT EXISTS testdb ;
USE testdb;
DROP TABLE IF EXISTS sign_product;
CREATE TABLE sign_product (
id BIGINT PRIMARY KEY NOT NULL AUTO_INCREMENT,
code VARCHAR(32) DEFAULT '' NOT NULL,
full_name VARCHAR(128) DEFAULT '' NOT NULL,
inventory INT DEFAULT 0 NOT ... |
CREATE TABLE REALESTATE
(
ID VARCHAR(32) NOT NULL,
POST_CODE VARCHAR(5),
SURFACE DOUBLE PRECISION,
PRICE DOUBLE PRECISION,
PRICE_PER_M2 DOUBLE PRECISION,
NUM_ROOMS SMALLINT,
NUM_BED_ROOMS SMALLINT,
PROPERTY_TYPE_AS_STRING VARCHAR(32),
DETAIL_URL VARCHAR(2048),
title VARCHAR(256),
CONSTRAINT REALES... |
/* SQL script to initialize CZIDLO core database for CZIDLO versions 4.4 - 4.6 */
/* Drop Indexes */
DROP INDEX IF EXISTS DIGITALDOCUMENT_ENTITYID;
DROP INDEX IF EXISTS DIGITALINSTANCE_DIGDOCID;
DROP INDEX IF EXISTS LIBRARY_REGISTRARID;
DROP INDEX IF EXISTS IEIDENTIFIER_VALUE;
DROP INDEX IF EXISTS URNNBN_REGISTRARC... |
DROP DATABASE IF EXISTS employee_DB;
CREATE DATABASE employee_DB;
USE employee_DB;
DROP TABLE IF EXISTS department;
DROP TABLE IF EXISTS role;
DROP TABLE IF EXISTS employee;
CREATE TABLE department (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(30) NOT NULL
);
CREATE TABLE role (
id INT NOT NULL AUTO_IN... |
-- We are declaring the return type to be queue_classic_jobs.
-- This is ok since I am assuming that all of the users added queues will
-- have identical columns to queue_classic_jobs.
-- When QC supports queues with columns other than the default, we will have to change this.
CREATE OR REPLACE FUNCTION lock_head(q_na... |
TRUNCATE TABLE public.recommendation_template_translation;
--
-- Load public.recommendation_template_translation
--
INSERT INTO public.recommendation_template_translation
(template, locale, title, description)
VALUES
(
recommendation_template_from_name('LESS_SHOWER_TIME'),
'en',
... |
SELECT count(*) FROM haggle_credit.item_sell;
DELIMITER $$
CREATE PROCEDURE myFunction3() -- ⓐ myFunction이라는 이름의 프로시져
BEGIN
DECLARE i INT DEFAULT 1; -- ⓑ i변수 선언, defalt값으로 1설정
WHILE (i <= 6002) DO -- ⓒ for문 작성(i가 1000이 될 때까지 반복)
update haggle_credit.item_sell set is_user_no=floor(1+RAND()*4) where is_... |
-- Find popular movies
select * from
title_ratings r, title_basics b
where
r.tconst = b.tconst and
b.title_type = 'movie' and
b.start_year = 2018 and
r.num_votes > 1000
order by r.num_votes DESC; |
library ErrorsAndMessaging version '1.0'
define TestMessageInfo: Message(1, true, '100', 'Message', 'Test Message')
define TestMessageWarn: Message(2, true, '200', 'Warning', 'You have been warned!')
define TestMessageTrace: Message({3, 4, 5}, true, '300', 'Trace', 'This is a trace')
define TestMessageError: Message(3... |
USE [VipunenTK]
GO
/****** Object: View [dbo].[v_f_tab_koulutukseen_sijoittuneet_6v_lukio] Script Date: 4.5.2018 15:17:21 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[v_f_tab_koulutukseen_sijoittuneet_6v_lukio] AS
Select
[lkm_int2] = lkm
,[tilastovuosi] AS Tilastovuosi
,d... |
SELECT assert(count(*), 35560, 'syntax-numeric_field_not_null-2') FROM so_posts WHERE so_posts ==> 'answer_count!=null';
|
-- 'удаление ненужных таблиц'
SELECT 'удаление ненужных таблиц' AS info;
DROP TABLE users_id_seq;
DROP TABLE unloading_events_id_seq;
DROP TABLE system_settings_id_seq;
DROP TABLE soms_settings_id_seq;
DROP TABLE settings_id_seq;
DROP TABLE service_normatives_id_seq;
DROP TABLE report_parameters_id_seq;
DROP TABLE reg... |
DROP TABLE IF EXISTS `test_104`; |
DELIMITER /
CREATE TABLE PMC_AWARD (
PMC_AWARD_ID DECIMAL(12,0) NOT NULL,
PERSON_MASS_CHANGE_ID DECIMAL(12,0) NOT NULL,
INVESTIGATOR CHAR(1) DEFAULT 'N' NOT NULL,
KEY_STUDY_PERSON CHAR(1) DEFAULT 'N' NOT NULL,
UNIT_CONTACT CHAR(1) DEFAULT 'N' NOT NULL,
SPO... |
prompt --application/shared_components/user_interface/templates/list/links_list
begin
-- Manifest
-- REGION TEMPLATE: LINKS_LIST
-- Manifest End
wwv_flow_api.component_begin (
p_version_yyyy_mm_dd=>'2021.04.15'
,p_release=>'21.1.0'
,p_default_workspace_id=>1830750307483664
,p_default_application_id=>220
,p_def... |
SELECT
ProductId,
LEFT(ProductCategory, CHARINDEX(' >', ProductCategory) - 1) AS Category,
RIGHT(ProductCategory, LEN(ProductCategory) - CHARINDEX('>', ProductCategory)) AS Subcategory,
Title AS Product,
ProductImageUrl As [Product Image]
FROM
Products |
LOAD DATA LOCAL INFILE './././download/geonames/countries/FM.txt' INTO TABLE geoname CHARACTER SET 'UTF8' (geonameid, name, asciiname, alternatenames, latitude, longitude, fclass, fcode, country, cc2, admin1, admin2, admin3, admin4, population, elevation, gtopo30, timezone, moddate);
|
DROP DATABASE IF EXISTS employee_db;
CREATE DATABASE employee_db;
USE employee_db;
CREATE TABLE department (
id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(30),
PRIMARY KEY (id)
);
CREATE TABLE role (
id INT NOT NULL AUTO_INCREMENT,
title VARCHAR(30),
salary DECIMAL(10,2),
department_id INT,
... |
--CREATE SCHEMA hr;
--GO
--CREATE TABLE hr.candidates(
-- id INT PRIMARY KEY IDENTITY,
-- fullname VARCHAR(100) NOT NULL
--);
--CREATE TABLE hr.employees(
-- id INT PRIMARY KEY IDENTITY,
-- fullname VARCHAR(100) NOT NULL
--);
--INSERT INTO
-- hr.candidates(fullname)
--VALUES
-- ('John Doe'),
-- ... |
--
-- Setup database permissions
--
GRANT SELECT, INSERT, UPDATE ON `zeprs`.* TO 'zeprs_web_user'@'localhost' IDENTIFIED BY '**password**';
GRANT SELECT ON `admin`.`form` TO 'zeprs_web_user'@'localhost' IDENTIFIED BY '**password**';
GRANT SELECT ON `mail`.`accountuser` TO 'zeprs_web_user'@'localhost' IDENTIFIED ... |
GRANT ALL ON *.* TO 'vaultuser'@'%' IDENTIFIED BY 'vaultpass';
GRANT GRANT OPTION ON *.* TO 'vaultuser'@'%';
CREATE DATABASE appdb;
USE appdb;
CREATE TABLE greetings (
id smallint unsigned not null auto_increment
, phrase nvarchar(255)
, constraint pk_greetings primary key (id) );
INSERT INTO greetings... |
--
-- Test foreign-data wrapper and server management.
--
-- Clean up in case a prior regression run failed
-- Suppress NOTICE messages when roles don't exist
SET client_min_messages TO 'error';
DROP ROLE IF EXISTS foreign_data_user, regress_test_role, regress_test_role2, regress_test_role_super, regress_test_indire... |
/*********************************************************************************
# Copyright 2014 Observational Health Data Sciences and Informatics
#
#
# 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 ... |
DROP DATABASE IF EXISTS db_editor;
CREATE DATABASE IF NOT EXISTS db_editor;
USE db_editor;
CREATE TABLE books (
book_isbn CHAR(10) PRIMARY KEY,
book_title VARCHAR(128) NOT NULL,
book_price SMALLINT UNSIGNED NOT NULL,
book_price_currency CHAR(3) NOT NULL DEFAULT 'EUR',
book_award_winning VARCHAR(2... |
-- phpMyAdmin SQL Dump
-- version 4.0.4.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 25, 2017 at 05:17 PM
-- Server version: 5.5.32
-- PHP Version: 5.4.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */... |
-- -- This file should undo anything in `up.sql`
-----------
DELETE from old_actual_port;
DELETE from actual_tic;
DELETE from actual_port;
-----------
DELETE from goal_tic;
DELETE from goal_port;
-----------
DELETE from tickers;
DELETE from exchanges;
-----------
DELETE from users;
|
CREATE TABLE [dbo].[DDLSnapshots] (
[DatabaseID] INT NOT NULL,
[SnapshotDate] DATETIME2 (3) NOT NULL,
[ValidatedDate] DATETIME2 (3) NOT NULL,
[DDLSnapshotOptionsID] INT NULL,
[Created] INT NULL,
[Modified] INT ... |
SELECT lcm(15, 10);
SELECT lcm(-15, 10);
SELECT lcm(15, -10);
SELECT lcm(-15, -10);
-- Implementation specific result on overflow:
SELECT ignore(lcm(256, 9223372036854775807));
SELECT ignore(lcm(256, -9223372036854775807));
SELECT ignore(lcm(-256, 9223372036854775807));
SELECT ignore(lcm(-256, -9223372036854775807));
|
--/*************************************************************************
-- (c) Copyright IBM Corp. 2007 All rights reserved.
--
-- The following sample of source code ("Sample") is owned by International
-- Business Machines Corporation or one of its subsidiaries ("IBM") and is
-- copyrighted and lice... |
alter table ACT_RU_EXECUTION
add SUSPENSION_STATE_ int;
alter table ACT_RE_PROCDEF
add SUSPENSION_STATE_ int;
alter table ACT_RE_PROCDEF
add REV_ int;
update ACT_RE_PROCDEF set REV_ = 1;
update ACT_RE_PROCDEF set SUSPENSION_STATE_ = 1;
update ACT_RU_EXECUTION set SUSPENSION_STATE_ = 1;
create ... |
/* Copyright 2014, 2015 OpenMarket Ltd
*
* 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
*
* Unless required by applicable law or agre... |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 8