Thursday 29 March 2012

SQL Create Database and Table


Create Database:
CREATE DATABASE MyDataBaseName

Query:
CREATE DATABASE Information

Database called Information will be created

Create Table:
Table exists with in data base, so it is important to mention with in which data base you want table to be created

Query:
USE [Information]

CREATE TABLE Persons
(
P_Id int,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
City varchar(255)
)

Table called Persons will be created under data base Information
Column of the table will be, P_id, LastName, FirstName, Address, City.
Data Type is int, varchar, date etc.

CreateTable

SQL Constraints:
Constraints are used to limit the type of data that can go into a table. In the above picture you can be Column name P_Id and (int, null), null means, P_id column can have null value. If you create a table with query below, P_Id and LastName Columns can not have null value.

Query:

CREATE TABLE Persons
(
P_Id int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255)
)

NOT NULL constraints means value for that column can not be NULL. In the above example P_id and LastName can not be left null.

I deleted the table Persons created and created the same table with new query. Only difference between table created before and now is IP_Id and LastName constraint is not null.

CreateTable2

Thursday 8 March 2012

【Ken】Webinar Series- Java Programming with Blue J

  • Using Blue J to code Java programming
  • Understanding Class
  • Method, constructor
  • Class diagram

::Student admin System




::Clock



:: Auction system

【Ken】Webinar Series- PHP framework- Codeignitor

PHP framework

  • Introduction of using PHP framework
  • MVC pattern folder

【Ken】Webinar Series- AJAX

AJAX
  • Process of AJAX
  • Preventing reloading web page

【Ken】Webinar Series- jQuery

  • Using JavaScript library, jQuery to manipulate the element of HTML,CSS

::jQuery Practice



::jQuery Intro

【Ken】Webinar Series- HTML DOM

HTML DOM

  • Summary of HTML document object model
  • Structure of HTML node
  • HTML elements

【Ken】Webinar Series- JavaScript

::JavaScript Intro by ken Choi
  • What is JavaScript?
  • What's the ability of the scripting language?



::JavaScript Grammar by Ken Choi
  • Structure of JavaScript




::JavaScript practical (2:07:50)

  • Practical example of using Java Script

Thursday 1 March 2012

【Ken】Webinar Series- Algorithm Flow Chart & VB

1. Algorithm Flow Chart & Code :: Visio 2007 + Visual Basic 2010 (video duration 3:02 min)




2. Algorithm Flow Chart & Code :: Visio 2007 + Visual Basic 2010 Part 2
(video duration 13:46 min)
Continuous Algorithm, Repeating Algorithm and Diverse Algorithm




3.Prime Number Calculator
Algorithm Flow Chart & Code :: Visio 2007 + Visual Basic 2010 (video duration 00:59 min)